Skip to content

Commit

Permalink
fix: prevent login screen always being shown
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveOrDead committed Oct 25, 2023
1 parent 814b699 commit 20e1953
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/utils/generateAuthUrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,13 @@ export function generateAuthUrl(options, type = 'login') {
scope: config.scope,
code_challenge: options.code_challenge,
code_challenge_method: config.codeChallengeMethod,
state: options.state,
start_page: type === 'register' ? 'registration' : 'login'
state: options.state
};

if (type === 'register') {
searchParams.start_page = 'registration';
}

if (org_code) {
searchParams.org_code = org_code;
}
Expand Down

0 comments on commit 20e1953

Please sign in to comment.