Skip to content

Commit 593356c

Browse files
fix(clerk-js): Add explicit check for withSignUp being false (clerk#5286)
1 parent 7ec95a7 commit 593356c

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.changeset/serious-mice-approve.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@clerk/clerk-js': patch
3+
---
4+
5+
When a user passes `withSignUp={false}` we should opt out of combined flow even when `signUpUrl` is undefined.

packages/clerk-js/src/ui/contexts/components/SignIn.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ export const useSignInContext = (): SignInContextType => {
4545

4646
const isCombinedFlow =
4747
(signUpMode !== 'restricted' &&
48-
Boolean(!options.signUpUrl && options.signInUrl && !isAbsoluteUrl(options.signInUrl))) ||
48+
Boolean(!options.signUpUrl && options.signInUrl && !isAbsoluteUrl(options.signInUrl)) &&
49+
context.withSignUp !== false) ||
4950
context.withSignUp ||
5051
false;
5152

0 commit comments

Comments
 (0)