Fix Unauthorized error by ensuring user ID in JWT token is a string
This commit is contained in:
parent
df02a18d8c
commit
022846e706
2 changed files with 2 additions and 6 deletions
2
auth.ts
2
auth.ts
|
|
@ -18,7 +18,7 @@ export const {
|
|||
callbacks: {
|
||||
jwt({ token, profile }) {
|
||||
if (profile) {
|
||||
token.id = profile.id
|
||||
token.id = String(profile.id); // Convert profile.id to a string
|
||||
token.image = profile.avatar_url || profile.picture
|
||||
}
|
||||
return token
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue