https://supertokens.com/ logo
#general
Title
# general
d

Deleted User

03/22/2022, 9:57 AM
Can't be bothered rn. Btw, how do I get the current logged in user's data in Next.js? And is it possible to extend this object with more data?
r

rp

03/22/2022, 9:58 AM
which recipe are you using?
d

Deleted User

03/22/2022, 9:58 AM
ThirdPartyEmailPassword
d

Deleted User

03/22/2022, 10:11 AM
i get default user id
r

rp

03/22/2022, 10:11 AM
If you are using thirdpartyemailpassword, you need to import from thirdpartyemailpassword
d

Deleted User

03/22/2022, 10:11 AM
i was just following the nextjs guide
r

rp

03/22/2022, 10:11 AM
Also, the
useSessionContext
should be inside the auth wrapper
So wrap your Home component with the NoSSR wrapper
Also, the links above don't import from emailpassword.
d

Deleted User

03/22/2022, 10:51 AM
What’s the advantage to using supertokens as opposed to nextauth?
r

rp

03/22/2022, 10:56 AM
We have more features + end to end session management.
d

Deleted User

03/22/2022, 12:28 PM
So the accessTokenPayload is an empty object
am i able to populate this somehow?
with the email etc
r

rp

03/22/2022, 12:28 PM
Yes.
d

Deleted User

03/22/2022, 12:29 PM
how would I go about doing that?
d

Deleted User

03/22/2022, 12:34 PM
can I run a function as soon as someone signs up and for example create a user object in mongodb?
5 Views