Skip to content

Commit

Permalink
fix: resolve the usernames if possible otherwise just log in. part 3
Browse files Browse the repository at this point in the history
  • Loading branch information
quiiver committed Oct 29, 2024
1 parent 54cc360 commit b631504
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/backend/src/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const gcpIapCustomAuthProvider = createBackendModule({
// try to resolve an existing gh username to the name part of the email
// otherwise, issue a log in token.
try {
return ctx.signInWithCatalogUser({ entityRef: { name } });
return await ctx.signInWithCatalogUser({ entityRef: { name } });
} catch (_) {
const userEntity = stringifyEntityRef({
kind: 'User',
Expand Down

0 comments on commit b631504

Please sign in to comment.