gardner / react-oauth2-pkce

React auth provider that works with AWS cognito PKCE🛡️🔒
49 stars 57 forks source link

isAuthenticated returns true even though authentication did not succeed #55

Open vera opened 1 year ago

vera commented 1 year ago

I accidentally set the wrong clientSecret which caused the authentication to fail. However, isAuthenticated returned true because auth in local storage was not null:

{"error":"unauthorized_client","error_description":"Invalid client or Invalid client credentials","expires_at":null}