next-auth user data
Unanswered
Max posted this in #help-forum
MaxOP
I followed this tutorial: https://www.youtube.com/watch?v=v6TPcU23wP8
Now in my
But i only get the email, anyone know how to fix it?
Codes:
Now in my
profile/page.tsx i want to display the username, email, firstname and lastname.But i only get the email, anyone know how to fix it?
Codes:
profile/page.tsx: https://hastebin.skyra.pw/exaveyaham.tsx[...nextauth]/route.ts: https://hastebin.skyra.pw/dokimodici.tsnext-auth.d.ts: https://hastebin.skyra.pw/xitivazoxu.ts3 Replies
@Max I followed this tutorial: https://www.youtube.com/watch?v=v6TPcU23wP8
Now in my `profile/page.tsx` i want to display the username, email, firstname and lastname.
But i only get the email, anyone know how to fix it?
Codes:
`profile/page.tsx`: https://hastebin.skyra.pw/exaveyaham.tsx
`[...nextauth]/route.ts`: https://hastebin.skyra.pw/dokimodici.ts
`next-auth.d.ts`: https://hastebin.skyra.pw/xitivazoxu.ts
Golden paper wasp
Are you storing them while registering???
As you're using credentials so you need to collect and store them in the database.
For github and google you automatically get user first name last name from them but in case of credentials you have to store it in database
As you're using credentials so you need to collect and store them in the database.
For github and google you automatically get user first name last name from them but in case of credentials you have to store it in database
@Golden paper wasp Are you storing them while registering???
As you're using credentials so you need to collect and store them in the database.
For github and google you automatically get user first name last name from them but in case of credentials you have to store it in database
MaxOP
I store it in the database
@Max I store it in the database
Golden paper wasp
Make sure to return user with info that you need in your authorize function