ArranJacques / laravel-aws-cognito-auth

An authentication driver for Laravel for authenticating users in AWS Cognito User Pools.
Other
74 stars 26 forks source link

added default error handler to config/aws-cognito-auth, also added su… #3

Closed zoul0813 closed 7 years ago

zoul0813 commented 7 years ago

added default error handler to config/aws-cognito-auth, also added support for an error handler class (similar to an event handler)

use Pallant\LaravelAwsCognitoAuth\AuthAttempt;

class AwsCognitoHandler {
  public function handle(AuthAttempt $response) {
    // TODO: handle error response
  }
}