Refresh Auth Token and User data #15
Replies: 6 comments 17 replies
-
Hey, you're right about that. Currently there is no way to refresh the token via the module, it would be good if you could. 💚 Also it makes sense to be able to set the storage option for the token to switch between |
Beta Was this translation helpful? Give feedback.
-
Hello together 👋, |
Beta Was this translation helpful? Give feedback.
-
Its not a good practice, to rely on to many external packages. I see this module as a lightweight opportunity, to access the Directus CMS in your Nuxt 3 Project. |
Beta Was this translation helpful? Give feedback.
-
@casualmatt I created a PR maybe u can test it with your project? |
Beta Was this translation helpful? Give feedback.
-
The question is, should we merge #16 with the current |
Beta Was this translation helpful? Give feedback.
-
I'm sorry to ask, but is there some progress on this? |
Beta Was this translation helpful? Give feedback.
-
Hello,
I notice that the module misses the token refresh token in the cookie or local/session-storage, which means that is not possible to refresh the token.
Is that intentional?
Another improvement could be to add user data on the cookie or session storage, with the same life-span of the main token, so that we don't need to fetch the username so many times, and it should give a small boost to performances, and use fewer resources on the back end.
Especially if you use the user information to understand if the user is login.
Check here for an example of a Real-life use: #14
Beta Was this translation helpful? Give feedback.
All reactions