Replies: 1 comment 2 replies
-
I have a few questions about what you're trying to accomplish.
Do you need access to the token during SSR or only from the client side? If only client side, you don't need to use
I assume you're using the Firebase ID token. If |
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
-
Here is my current situation.
When making request to my API(Hasura/GQL), I do not always require validation to take part server side as Hasura handles it anyhow via Firebase's JWK Url denoted using the pattern here
As I understand, currently to access the token server side within the app you both export the component with
withAuthUser
and wrap yourgetServerSideProps
withwithAuthUserTokenSSR
with performs its own validation of the token such asI'm running into two issues
withAuthUserTokenSSR()()
when my only requirement is to access the token for input in anauthorization
header.withAuthUserTokenSSR
.I'm pretty new to nextJS and the whole SSR/SSG concepts so I might have an anti-pattern going on, but I'd love input anyhow as I can see myself utilizing this library over and over.
Beta Was this translation helpful? Give feedback.
All reactions