How to get User Details inside getServerSideProps? #643
Unanswered
lazycipher
asked this question in
Q&A
Replies: 1 comment 1 reply
-
is sign in successful with login api ? You can also get auth user with withAuthUserTokenSSR in index.jsx . I also have problem when moving ssr data fetching to context file |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I need to have the uid of a logged in user to access the details from DB.
Is there any way I can access the user details?
I tried
withAuthUserSSR()()
but it seems theAuthUser
object has null data.Am I doing it wrong or there's any better way to do this?
Beta Was this translation helpful? Give feedback.
All reactions