From 614963271bf6f588e4d35b747aeacad395876f31 Mon Sep 17 00:00:00 2001 From: Ahmed Abdelbaset Date: Sun, 27 Aug 2023 18:44:29 +0300 Subject: [PATCH] fix: User Image returned from auth provider (#126) --- auth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth.ts b/auth.ts index 7a660f0..c70f900 100644 --- a/auth.ts +++ b/auth.ts @@ -20,7 +20,7 @@ export const { jwt({ token, profile }) { if (profile) { token.id = profile.id - token.image = profile.picture + token.image = profile.avatar_url || profile.picture } return token },