diff --git a/src/lib/authOptions.ts b/src/lib/authOptions.ts index e803226e..3f0dd218 100644 --- a/src/lib/authOptions.ts +++ b/src/lib/authOptions.ts @@ -126,6 +126,7 @@ export const authOptions = { token.name = user.name; token.isVerified = user.isVerified; token.role = loggedInUser.role ? loggedInUser.role : user.role; + token.image = loggedInUser ? loggedInUser.avatar : user.image; } return token; },