Next.js Discord

Discord Forum

NextAuth v5, issue

Unanswered
Sokoke posted this in #help-forum
Open in Discord
SokokeOP
I'm using next(v15, app router) auth v5 with twitter login, its totally working, but issue is i can't get the user id or email or any uid

2 Replies

@Sokoke I'm using next(v15, app router) auth v5 with twitter login, its totally working, but issue is i can't get the user id or email or any uid
you can use the account key inside your object [(see here)](https://authjs.dev/reference/nextjs#account) to get information about the session and the account that the user chose. Iirc you get this information only once during inital login. Save it either in your session or don't save it
@Sokoke solved?