yomafleet/cognito-authenticator

Authentication with AWS Cognito for Laravel project

v1.1.1 2024-01-03 03:14 UTC

README

Install

  • install with composer
composer require laravel-cognito-authenticator
  • set the 'driver' option of the 'guards' in 'config/auth.php' to 'cognito'
[
    'api' => [
            'driver'   => 'cognito',
            'provider' => 'users',
            'hash'     => false,
        ],
]
  • Note that this package will add 2 new columns to users table, named: 'sub' and 'identities'

Testing

$ ./vendor/bin/phpunit

License

The MIT License (MIT). Please see License File for more information.