SohoHouse / nuxt-oauth

Simple OAuth2 integration for your Nuxt app
MIT License
122 stars 27 forks source link

Auto logout option and error handling. #52

Closed eggsy closed 1 year ago

eggsy commented 4 years ago

Hey :wave: I moved to this module from Nuxt's own module because I need to do "multiple authentication". I've achieved that with your module and I'm very grateful, so thanks! But, I miss the ability to set custom expiration dates to tokens so module would log the user out by itself when the time has passed. Also, when an OAuth request is rejected, it doesn't redirect users back, it keeps waiting for them to approve it and keeps the error in the following image to the console; which is annoying in my opinion. I wish there was a way to handle rejected requests.

image