Skip to content
/ auth Public

Authentication adapters for common use cases.

License

Unlicense, Unlicense licenses found

Licenses found

Unlicense
LICENSE
Unlicense
UNLICENSE
Notifications You must be signed in to change notification settings

inanepain/auth

Repository files navigation

inanepain/auth icon

icon inanepain/auth

Authentication adapters for common use cases.

1. Install

Example 1. composer

composer require inanepain/auth

2. Two-Factor Authentication

Generating and verifying tokens and pins.

2.1. Generate Token

$token = new \Inane\Authentication\TwoFactor\Token('Inane');
echo "$token";

2.2. Verify OTP

$otp = new \Inane\Authentication\TwoFactor\OneTimePin($token);
$valid = $otp->verifyOTP('612777');

2.3. QRCode URL

$imgUrl = $token->getQRCodeUrl();
// OR
$imgBase64 = $token->getImageBase64();

About

Authentication adapters for common use cases.

Topics

Resources

License

Unlicense, Unlicense licenses found

Licenses found

Unlicense
LICENSE
Unlicense
UNLICENSE

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages