Skip to content

Commit b7dedb4

Browse files
committed
additional tsdoc
1 parent defc7a6 commit b7dedb4

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
*/
2933
export 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

0 commit comments

Comments
 (0)