ember-simple-auth icon indicating copy to clipboard operation
ember-simple-auth copied to clipboard

Is there a way to keep refreshing an OAuth token?

Open riklaunim opened this issue 4 years ago • 1 comments

Is there a way to periodically refresh the session/oauth token in the background? I have an ember based "admin panel" and sometimes people start using it after a period of inactivity after which their token is no longer valid. They click something, requests fail due to authentication and the panel redirects to re-authenticate which can be kind of bad experience for the user (and can lead to unsaved changes, JS errors in logs/sentry etc).

riklaunim avatar Aug 26 '20 10:08 riklaunim

Yes, you have the refreshAccessTokens property, in our case we had to reimplement the private method _refreshAccessToken but it's not needed

pabloascarza avatar Aug 26 '20 14:08 pabloascarza