Skip to content

Commit d52714e

Browse files
authored
chore(clerk-js): Remove unused __internal_hasAfterAuthFlows (#6609)
1 parent 4e15e06 commit d52714e

File tree

4 files changed

+7
-11
lines changed

4 files changed

+7
-11
lines changed

.changeset/common-clowns-speak.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@clerk/clerk-js': patch
3+
'@clerk/clerk-react': patch
4+
'@clerk/types': patch
5+
---
6+
7+
Remove unused `__internal_hasAfterAuthFlows` property

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2677,10 +2677,6 @@ export class Clerk implements ClerkInterface {
26772677
this.#emit();
26782678
};
26792679

2680-
get __internal_hasAfterAuthFlows() {
2681-
return !!this.environment?.organizationSettings?.forceOrganizationSelection;
2682-
}
2683-
26842680
#defaultSession = (client: ClientResource): SignedInSessionResource | null => {
26852681
if (client.lastActiveSessionId) {
26862682
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)