fix: User Image returned from auth provider (#126)

This commit is contained in:
Ahmed Abdelbaset 2023-08-27 18:44:29 +03:00 committed by GitHub
parent 807ad666c2
commit 614963271b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,7 +20,7 @@ export const {
jwt({ token, profile }) { jwt({ token, profile }) {
if (profile) { if (profile) {
token.id = profile.id token.id = profile.id
token.image = profile.picture token.image = profile.avatar_url || profile.picture
} }
return token return token
}, },