pmill / aws-cognito

A PHP library for AWS Cognito user pools
MIT License
74 stars 62 forks source link

NotAuthorizedException addition #41

Open bclarkicc opened 4 years ago

bclarkicc commented 4 years ago

Adding in an exception file for the NotAuthorizedException. This is thrown by Cognito when a user that exists in the user pool signs in with an invalid password. It should probably be handled in here instead of requiring a separate catch statement for a CognitoIdentityProviderException in the implementing app.