Simplifying Authentication in Medusa JS #5912
Unanswered
MarNeumann
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone,
I was wondering if there's a way to streamline the authentication process for a protected route. Currently, I make a separate request to
/store/auth/token
to get a bearer token and then use it for my protected route.I'd like to explore the idea of updating the route to accept login credentials directly, eliminating the need for this extra request.
Current Workflow:
Proposed Workflow:
I studied the documentation and GitHub discussion, but unfortunately didn't find a suitable approach yet.
Looking forward to your input!
Best, Marvin
Beta Was this translation helpful? Give feedback.
All reactions