Skip to content

Commit d911c3f

Browse files
committed
chore(clerk-js): Rename SessionCookieService to AuthCookieService for clarity
1 parent 0e9fb89 commit d911c3f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

packages/clerk-js/src/core/auth/SessionCookieService.ts renamed to packages/clerk-js/src/core/auth/AuthCookieService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ import type { DevBrowser } from './devBrowser';
1313
import { createDevBrowser } from './devBrowser';
1414
import { SessionCookiePoller } from './SessionCookiePoller';
1515

16-
// TODO: make SessionCookieService singleton since it handles updating cookies using a poller
16+
// TODO: make AuthCookieService singleton since it handles updating cookies using a poller
1717
// and we need to avoid updating them concurrently.
18-
export class SessionCookieService {
18+
export class AuthCookieService {
1919
private environment: EnvironmentResource | undefined;
2020
private poller: SessionCookiePoller | null = null;
2121
private clientUat: ClientUatCookieHandler;

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ import {
8686
import { assertNoLegacyProp } from '../utils/assertNoLegacyProp';
8787
import { memoizeListenerCallback } from '../utils/memoizeStateListenerCallback';
8888
import { RedirectUrls } from '../utils/redirectUrls';
89-
import { SessionCookieService } from './auth/SessionCookieService';
89+
import { AuthCookieService } from './auth/AuthCookieService';
9090
import { CLERK_SATELLITE_URL, CLERK_SYNCED, ERROR_CODES } from './constants';
9191
import {
9292
clerkErrorInitFailed,
@@ -159,7 +159,7 @@ export class Clerk implements ClerkInterface {
159159
#publishableKey: string = '';
160160
#domain: DomainOrProxyUrl['domain'];
161161
#proxyUrl: DomainOrProxyUrl['proxyUrl'];
162-
#authService: SessionCookieService | null = null;
162+
#authService: AuthCookieService | null = null;
163163
#broadcastChannel: LocalStorageBroadcastChannel<ClerkCoreBroadcastChannelEvent> | null = null;
164164
#componentControls?: ReturnType<MountComponentRenderer> | null;
165165
//@ts-expect-error with being undefined even though it's not possible - related to issue with ts and error thrower
@@ -1517,7 +1517,7 @@ export class Clerk implements ClerkInterface {
15171517
};
15181518

15191519
#loadInStandardBrowser = async (): Promise<boolean> => {
1520-
this.#authService = new SessionCookieService(this, this.#fapiClient);
1520+
this.#authService = new AuthCookieService(this, this.#fapiClient);
15211521

15221522
/**
15231523
* 1. Multi-domain SSO handling

0 commit comments

Comments
 (0)