sending access token on NextAuth cookie #2686
Unanswered
killjoy2013
asked this question in
Q&A
Replies: 1 comment 2 replies
-
I think that would be doable with rhai, when we add support for router service plugins. We're thinking about it, it is tracked here #2635 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My router.yaml is;
However, NextAuth keeps the access token in a cookie with the name
next-auth.session-token
.Is it possible to configure router.yaml to support both Authorization header & cookie?
Would it be possible to use Rhai scripts to get access token from the cookie and add it as the Bearer token to authorization header?
What would be the most suitable approach in this case?
Beta Was this translation helpful? Give feedback.
All reactions