Skip to content

Commit

Permalink
Forward email param to OAuth2 login url (#922)
Browse files Browse the repository at this point in the history
  • Loading branch information
bloodyowl authored Oct 1, 2024
1 parent a67432c commit 35bbc42
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,7 @@ export const start = async ({
accountMembershipId,
identificationLevel,
projectId,
email,
} = request.query;
if (
typeof redirectTo === "string" &&
Expand Down Expand Up @@ -562,6 +563,7 @@ export const start = async ({
createAuthUrl({
scope: scope.split(" ").filter(item => item != null && item != ""),
params: {
...(email != null ? { email } : null),
...(onboardingId != null ? { onboardingId } : null),
...(identificationLevel != null ? { identificationLevel } : null),
...(projectId != null ? { projectId } : null),
Expand Down

0 comments on commit 35bbc42

Please sign in to comment.