Can't be bothered rn. Btw, how do I get the curren...
# general
d
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
which recipe are you using?
d
ThirdPartyEmailPassword
d
i get default user id
r
If you are using thirdpartyemailpassword, you need to import from thirdpartyemailpassword
d
i was just following the nextjs guide
r
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
What’s the advantage to using supertokens as opposed to nextauth?
r
We have more features + end to end session management.
d
So the accessTokenPayload is an empty object
am i able to populate this somehow?
with the email etc
r
Yes.
d
how would I go about doing that?
d
can I run a function as soon as someone signs up and for example create a user object in mongodb?
5 Views