gardner / react-oauth2-pkce

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

Using session storage instead of local storage #49

Open vyshakhj opened 2 years ago

christoph-bittmann commented 2 years ago

It makes a lot of sense to save the token only for the duration of the session.

gardner commented 2 years ago

Thanks for this MR. This could be a breaking change. We would need to update the version number accordingly. I'm working on getting #48 merged but that may have to wait until the weekend.

robertito121 commented 1 year ago

any updates on this? using local storage to save the AuthToken prevents real time update of this token, specially when a user revokes access to an application at the authorization server side.