mirror of
https://github.com/lukevella/rallly.git
synced 2025-04-28 17:56:37 +02:00
🐛 Update name in session (#1559)
This commit is contained in:
parent
4b26dc50b3
commit
8519631c96
1 changed files with 2 additions and 0 deletions
|
@ -145,6 +145,7 @@ export const { auth, handlers, signIn, signOut } = NextAuth({
|
|||
id: userId,
|
||||
},
|
||||
select: {
|
||||
name: true,
|
||||
email: true,
|
||||
locale: true,
|
||||
timeFormat: true,
|
||||
|
@ -154,6 +155,7 @@ export const { auth, handlers, signIn, signOut } = NextAuth({
|
|||
});
|
||||
|
||||
if (user) {
|
||||
token.name = user.name;
|
||||
token.email = user.email;
|
||||
token.locale = user.locale;
|
||||
token.timeFormat = user.timeFormat;
|
||||
|
|
Loading…
Add table
Reference in a new issue