Skip to content

Commit

Permalink
Refactor: Update authOptions to include user image in session
Browse files Browse the repository at this point in the history
  • Loading branch information
CuriousCoder00 committed Oct 6, 2024
1 parent a5a878e commit b150689
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/authOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
},
Expand Down

0 comments on commit b150689

Please sign in to comment.