inanepain/auth Table of Contents inanepain/auth 1. Install 2. Two-Factor Authentication 2.1. Generate Token 2.2. Verify OTP 2.3. QRCode URL inanepain/auth Authentication adapters for common use cases. 1. Install composer composer require inanepain/auth 2. Two-Factor Authentication Generating and verifying tokens and pins. 2.1. Generate Token $token = new \Inane\Auth\TwoFactor\Token('Inane'); echo "$token"; 2.2. Verify OTP $otp = new \Inane\Auth\TwoFactor\OneTimePin($token); $valid = $otp->verifyOTP('612777'); 2.3. QRCode URL // OTP URL (otpauth://) $otpUrl = $token->getOTPUrl(); // OR $imgBase64 = $token->getImageBase64();