File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
packages/clerk-js/src/core Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -26,10 +26,27 @@ interface TokenCacheEntry extends TokenCacheKeyJSON {
2626 tokenResolver : Promise < TokenResource > ;
2727}
2828
29+ /**
30+ * Metadata broadcast to other tabs when a token is fetched or refreshed.
31+ * Contains session and organization context along with the raw token value.
32+ */
2933export interface TokenBroadcastMetadata {
34+ /**
35+ * Organization ID associated with the token, if any.
36+ * Nullable for tokens not scoped to an organization.
37+ */
3038 organizationId ?: string | null ;
39+ /**
40+ * Session ID for which the token was issued.
41+ */
3142 sessionId : string ;
43+ /**
44+ * JWT template name used to generate the token, if applicable.
45+ */
3246 template ?: string ;
47+ /**
48+ * Raw JWT token string.
49+ */
3350 tokenRaw : string ;
3451}
3552
You can’t perform that action at this time.
0 commit comments