Replies: 3 comments 2 replies
-
It seems like I should be proxying external API calls. It's something I initially tried to avoid but it looks like a common practice. |
Beta Was this translation helpful? Give feedback.
0 replies
-
session is a subset of token, so |
Beta Was this translation helpful? Give feedback.
2 replies
-
When used server-side, getSession also expects the req object. https://next-auth.js.org/getting-started/client#server-side-example and it should be calling both the jwt and session callbacks. |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
I use a function like this in my
getServerSideProps
:In case if the token is expired,
getFullUserObject
is failing. When designing this solution I expected that myjwt
andsession
callbacks will be triggered bygetSession
but in fact, they are not.Is there a fix to this flow and maybe I'm just doing something wrong?
Thank you
Beta Was this translation helpful? Give feedback.
All reactions