Fix Unauthorized error by ensuring user ID in JWT token is a string

This commit is contained in:
admineral 2023-11-27 20:50:38 +01:00
parent df02a18d8c
commit 022846e706
2 changed files with 2 additions and 6 deletions

View file

@ -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