An open API service indexing awesome lists of open source software.

https://github.com/pdscopes/twofactor

Library for two factor authentication
https://github.com/pdscopes/twofactor

google-authenticator two-factor-authentication

Last synced: 5 months ago
JSON representation

Library for two factor authentication

Awesome Lists containing this project

README

          

# madesimple/twofactor
[![PHPUnit](https://github.com/pdscopes/twofactor/actions/workflows/phpunit.yml/badge.svg)](https://github.com/pdscopes/twofactor/actions/workflows/phpunit.yml)

Library for two factor authentication.

## Google Authenticator
How to use:
```php
use MadeSimple\TwoFactor\GoogleAuthenticator\GoogleAuthenticator;

$auth = new GoogleAuthenticator($secret);
if (!$auth->$verfiy($code)) {
// Block access
}

// Sign them in
```