Back

account.get() in next-auth

  • 1
  • Web
ahmedehab
9 Jul, 2023, 13:32

I'm using createEmailSession in next-auth function but account.get() not work after it and i want to get user object to return full info

TL;DR
The user is trying to use the `account.get()` function in the NextAuth library, but it is not working after using the `createEmailSession` function. They want to retrieve the user object to return full information. In response, someone suggests manually making the API call and managing the session since the web sdk is meant for client-side usage. The user asks if this information can be found in the documentation. No solution is provided in this support thread.
Drake
9 Jul, 2023, 19:37

If this is being executed server side, you'll need to manually make the API call and manually manage the session since the web sdk is meant to be used client side where the session is automatically handled by the browser

ahmedehab
11 Jul, 2023, 16:19

can i find this in documentation?

Drake
11 Jul, 2023, 16:20
ahmedehab
11 Jul, 2023, 16:34

thanks ill try to implement

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more