You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to add an address property to the user property in session, refer to the third link document
export const { auth, handlers } = NextAuth({
callbacks: {
session({ session, token, user }) {
// `session.user.address` is now a valid property, and will be type-checked
// in places like `useSession().data.user` or `auth().user`
return {
...session,
user: {
...session.user,
address: user.address,
},
}
},
},
})
My question is does the session function accept user as an argument in the following code?
What is the improvement or update you wish to see?
I want to add an address property to the user property in session, refer to the third link document
My question is does the session function accept user as an argument in the following code?
The call to session in source code is
No user attribute
Is there any context that might help us understand?
https://authjs.dev/getting-started/typescript?framework=next-js
Does the docs page already exist? Please link to it.
No response
The text was updated successfully, but these errors were encountered: