Handling token without MedusaJS Session #7052
markus-gx
started this conversation in
Feature Requests
Replies: 2 comments 3 replies
-
PR: #7053 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Just wondering could you elaborate how did you implement Medusa authentication in Nuxt 3 SSR and route middleware for protected routes? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When using different frontend frameworks, there are features that are different. In Nuxt 3 with SSR, for example, session management as currently provided by the medusa-js SDK is not really usable in terms of authentication and route middleware for protected routes.
Hence the suggestion to manage the token itself (this makes it possible to handle server + client side hydration at the same time). Basically, everything is already there in the code base, except for a
setToken
function for the JWTTokenHandler.Adding this would make the SDK easier to customise for other frameworks.
Beta Was this translation helpful? Give feedback.
All reactions