gardner/react-oauth2-pkce

isAuthenticated returns true even though authentication did not succeed

Opened this issue · 0 comments

vera commented

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}