Skip to content

Commit 16253ee

Browse files
committed
Remove unused __internal_hasAfterAuthFlows
1 parent 9799a44 commit 16253ee

File tree

3 files changed

+3
-12
lines changed

3 files changed

+3
-12
lines changed

packages/clerk-js/src/core/clerk.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ import type {
2828
AuthenticateWithGoogleOneTapParams,
2929
AuthenticateWithMetamaskParams,
3030
AuthenticateWithOKXWalletParams,
31-
Clerk as ClerkInterface,
3231
ClerkAPIError,
3332
ClerkAuthenticateWithWeb3Params,
33+
Clerk as ClerkInterface,
3434
ClerkOptions,
3535
ClientJSONSnapshot,
3636
ClientResource,
@@ -1796,6 +1796,8 @@ export class Clerk implements ClerkInterface {
17961796
navigate: (to: string) => Promise<unknown>;
17971797
},
17981798
): Promise<unknown> => {
1799+
debugger;
1800+
17991801
if (!this.loaded || !this.environment || !this.client) {
18001802
return;
18011803
}
@@ -2662,10 +2664,6 @@ export class Clerk implements ClerkInterface {
26622664
this.#emit();
26632665
};
26642666

2665-
get __internal_hasAfterAuthFlows() {
2666-
return !!this.environment?.organizationSettings?.forceOrganizationSelection;
2667-
}
2668-
26692667
#defaultSession = (client: ClientResource): SignedInSessionResource | null => {
26702668
if (client.lastActiveSessionId) {
26712669
const currentSession = client.signedInSessions.find(s => s.id === client.lastActiveSessionId);

packages/react/src/isomorphicClerk.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ type IsomorphicLoadedClerk = Without<
106106
| 'billing'
107107
| 'apiKeys'
108108
| '__internal_setActiveInProgress'
109-
| '__internal_hasAfterAuthFlows'
110109
> & {
111110
client: ClientResource | undefined;
112111
billing: CommerceBillingNamespace | undefined;

packages/types/src/clerk.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -866,12 +866,6 @@ export interface Clerk {
866866
*/
867867
__internal_setActiveInProgress: boolean;
868868

869-
/**
870-
* Internal flag indicating whether after-auth flows are enabled based on instance settings.
871-
* @internal
872-
*/
873-
__internal_hasAfterAuthFlows: boolean;
874-
875869
/**
876870
* API Keys Object
877871
* @experimental

0 commit comments

Comments
 (0)