From 07e4ce84992f27a1fdf7173a83896005423cf7c6 Mon Sep 17 00:00:00 2001 From: Louis Bailleau Date: Mon, 17 Jun 2024 09:22:01 +0200 Subject: [PATCH] fix: add name fallback for GitHub users (#152) fix #150 --- src/drivers/github.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/github.ts b/src/drivers/github.ts index 4e5129b..a372149 100644 --- a/src/drivers/github.ts +++ b/src/drivers/github.ts @@ -142,7 +142,7 @@ export class GithubDriver extends Oauth2Driver { emailVerificationState: (body.email ? 'verified' : 'unsupported') as AllyUserContract['emailVerificationState'], - name: body.name, + name: body.name ?? body.login, avatarUrl: body.avatar_url, original: body, }