[Question]: How to get account's idToken from Auth0 to use with Hasura #2303
Unanswered
wilsonmsalberto
asked this question in
Help
Replies: 1 comment
-
Hopefully you were able to find a solution by now, but this is how I wrote the session callback:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Question 💬
Hello! Currently trying to find a way to get the
idToken
that is insideaccount
to use with the hookuseSession
.Right now, my config looks like this:
Login works fine, accessing a user's details works fine, but I need to now access an Hasura API that is connected to Auth0. Both services are connected through Auth0 rules and they define the proper JWT.
For that, I need to pass the
idToken
but I can't seem to figure out the config combination that actually allows me to pass it through to thesession
object.If I copy the value that is inside
idToken
and use it to access my Hasura API, it works perfectly, just can't seem to find a way to pass it through.Any pointers? Thanks!
How to reproduce ☕️
No response
Contributing 🙌🏽
Yes, I am willing to help answer this question in a PR
Beta Was this translation helpful? Give feedback.
All reactions