File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
packages/clerk-js/src/core Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @clerk/clerk-js ' : patch
3
+ ---
4
+
5
+ Do not allow ` setActive({ organization: null }) ` when organization selection is forced
Original file line number Diff line number Diff line change @@ -1071,6 +1071,10 @@ export class Clerk implements ClerkInterface {
1071
1071
) ;
1072
1072
}
1073
1073
1074
+ if ( ! organization && this . environment ?. organizationSettings . forceOrganizationSelection ) {
1075
+ throw new Error ( 'setActive requires an organization parameter when organization selection is forced.' ) ;
1076
+ }
1077
+
1074
1078
const onBeforeSetActive : SetActiveHook =
1075
1079
typeof window !== 'undefined' && typeof window . __unstable__onBeforeSetActive === 'function'
1076
1080
? window . __unstable__onBeforeSetActive
You can’t perform that action at this time.
0 commit comments