Skip to content

Commit

Permalink
chore(shared): Move constant to specific package
Browse files Browse the repository at this point in the history
  • Loading branch information
tmilewski committed Dec 6, 2023
1 parent 296961e commit f7e9356
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion .changeset/shiny-glasses-switch.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
'@clerk/chrome-extension': major
'@clerk/shared': patch
---

Expand the ability for `@clerk/chrome-extension` WebSSO to sync with host applications which use URL-based session syncing.
Expand Down
1 change: 1 addition & 0 deletions packages/chrome-extension/src/constants.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export const CLIENT_JWT_KEY = '__client';
export const STORAGE_KEY_CLIENT_JWT = '__clerk_client_jwt';
4 changes: 2 additions & 2 deletions packages/chrome-extension/src/singleton.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Clerk } from '@clerk/clerk-js';
import type { ClerkProp } from '@clerk/clerk-react';
import { CLIENT_JWT_KEY, DEV_BROWSER_JWT_MARKER } from '@clerk/shared';
import { DEV_BROWSER_JWT_MARKER } from '@clerk/shared';
import browser from 'webextension-polyfill';

import { STORAGE_KEY_CLIENT_JWT } from './constants';
import { CLIENT_JWT_KEY, STORAGE_KEY_CLIENT_JWT } from './constants';
import { logErrorHandler } from './errors';
import { getClientCookie } from './utils/cookies';
import { BrowserStorageCache, type StorageCache } from './utils/storage';
Expand Down
1 change: 0 additions & 1 deletion packages/shared/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,3 @@ export const STAGING_ENV_SUFFIXES = ['.accountsstage.dev'];
export const LOCAL_API_URL = 'https://api.lclclerk.com';
export const STAGING_API_URL = 'https://api.clerkstage.dev';
export const PROD_API_URL = 'https://api.clerk.com';
export const CLIENT_JWT_KEY = '__client';

0 comments on commit f7e9356

Please sign in to comment.