From 2658e9420f6a2a530f7d0e9d37a5765549bf014a Mon Sep 17 00:00:00 2001 From: blam Date: Fri, 13 May 2022 13:40:00 +0200 Subject: [PATCH] chore: reset Signed-off-by: blam --- packages/backend/src/plugins/auth.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/backend/src/plugins/auth.ts b/packages/backend/src/plugins/auth.ts index 984ddd9651..cd0c42afe5 100644 --- a/packages/backend/src/plugins/auth.ts +++ b/packages/backend/src/plugins/auth.ts @@ -42,7 +42,11 @@ export default async function createPlugin( // It is important that each real user always gets resolved to // the same sign-in identity. The code below will not do that. // It is here for demo purposes only. - github: providers.github.create(), + github: providers.github.create({ + signIn: { + resolver: providers.github.resolvers.usernameMatchingUserEntityName(), + }, + }), gitlab: providers.gitlab.create({ signIn: { async resolver({ result: { fullProfile } }, ctx) {