Skip to content

Commit 8edaa89

Browse files
committedMar 14, 2025
update usage
1 parent 8ca008b commit 8edaa89

File tree

8 files changed

+19
-19
lines changed

8 files changed

+19
-19
lines changed
 

‎packages/astro/src/react/hooks.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type {
2-
ActJWTClaim,
2+
ActClaim,
33
CheckAuthorizationWithCustomPermissions,
44
Clerk,
55
GetToken,
@@ -85,7 +85,7 @@ type UseAuthReturn =
8585
isSignedIn: true;
8686
userId: string;
8787
sessionId: string;
88-
actor: ActJWTClaim | null;
88+
actor: ActClaim | null;
8989
orgId: null;
9090
orgRole: null;
9191
orgSlug: null;
@@ -98,7 +98,7 @@ type UseAuthReturn =
9898
isSignedIn: true;
9999
userId: string;
100100
sessionId: string;
101-
actor: ActJWTClaim | null;
101+
actor: ActClaim | null;
102102
orgId: string;
103103
orgRole: OrganizationCustomRoleKey;
104104
orgSlug: string | null;

‎packages/clerk-js/src/core/resources/Session.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { ClerkWebAuthnError, is4xxError } from '@clerk/shared/error';
33
import { retry } from '@clerk/shared/retry';
44
import { isWebAuthnSupported as isWebAuthnSupportedOnWindow } from '@clerk/shared/webauthn';
55
import type {
6-
ActJWTClaim,
6+
ActClaim,
77
CheckAuthorization,
88
EmailCodeConfig,
99
GetToken,
@@ -45,7 +45,7 @@ export class Session extends BaseResource implements SessionResource {
4545
lastActiveAt!: Date;
4646
lastActiveToken!: TokenResource | null;
4747
lastActiveOrganizationId!: string | null;
48-
actor!: ActJWTClaim | null;
48+
actor!: ActClaim | null;
4949
user!: UserResource | null;
5050
publicUserData!: PublicUserData;
5151
factorVerificationAge: [number, number] | null = null;

‎packages/clerk-js/src/core/resources/SessionWithActivities.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type {
2-
ActJWTClaim,
2+
ActClaim,
33
SessionActivity,
44
SessionActivityJSON,
55
SessionWithActivitiesJSON,
@@ -28,7 +28,7 @@ export class SessionWithActivities extends BaseResource implements SessionWithAc
2828
expireAt!: Date;
2929
lastActiveAt!: Date;
3030
latestActivity!: SessionActivity;
31-
actor!: ActJWTClaim | null;
31+
actor!: ActClaim | null;
3232

3333
constructor(data: SessionWithActivitiesJSON, pathRoot: string) {
3434
super();

‎packages/react/src/contexts/AuthContext.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { createContextAndHook } from '@clerk/shared/react';
2-
import type { ActJWTClaim, OrganizationCustomPermissionKey, OrganizationCustomRoleKey } from '@clerk/types';
2+
import type { ActClaim, OrganizationCustomPermissionKey, OrganizationCustomRoleKey } from '@clerk/types';
33

44
export type AuthContextValue = {
55
userId: string | null | undefined;
66
sessionId: string | null | undefined;
7-
actor: ActJWTClaim | null | undefined;
7+
actor: ActClaim | null | undefined;
88
orgId: string | null | undefined;
99
orgRole: OrganizationCustomRoleKey | null | undefined;
1010
orgSlug: string | null | undefined;

‎packages/types/src/hooks.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { OrganizationCustomRoleKey } from 'organizationMembership';
22
import type { SignInResource } from 'signIn';
33

44
import type { SetActive, SignOut } from './clerk';
5-
import type { ActJWTClaim } from './jwt';
5+
import type { ActClaim } from './jwtv2';
66
import type {
77
CheckAuthorizationWithCustomPermissions,
88
GetToken,
@@ -83,7 +83,7 @@ export type UseAuthReturn =
8383
isSignedIn: true;
8484
userId: string;
8585
sessionId: string;
86-
actor: ActJWTClaim | null;
86+
actor: ActClaim | null;
8787
orgId: null;
8888
orgRole: null;
8989
orgSlug: null;
@@ -96,7 +96,7 @@ export type UseAuthReturn =
9696
isSignedIn: true;
9797
userId: string;
9898
sessionId: string;
99-
actor: ActJWTClaim | null;
99+
actor: ActClaim | null;
100100
orgId: string;
101101
orgRole: OrganizationCustomRoleKey;
102102
orgSlug: string | null;

‎packages/types/src/json.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import type { __experimental_CommerceSettingsJSON } from './commerceSettings';
66
import type { DisplayConfigJSON } from './displayConfig';
77
import type { EnterpriseProtocol, EnterpriseProvider } from './enterpriseAccount';
8-
import type { ActJWTClaim } from './jwt';
8+
import type { ActClaim } from './jwtv2';
99
import type { OAuthProvider } from './oauth';
1010
import type { OrganizationDomainVerificationStatus, OrganizationEnrollmentMode } from './organizationDomain';
1111
import type { OrganizationInvitationStatus } from './organizationInvitation';
@@ -118,7 +118,7 @@ export interface SessionJSON extends ClerkResourceJSON {
118118
last_active_at: number;
119119
last_active_token: TokenJSON;
120120
last_active_organization_id: string | null;
121-
actor: ActJWTClaim | null;
121+
actor: ActClaim | null;
122122
tasks: Array<SessionTask> | null;
123123
user: UserJSON;
124124
public_user_data: PublicUserDataJSON;

‎packages/types/src/session.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import type {
1010
PhoneCodeSecondFactorConfig,
1111
TOTPAttempt,
1212
} from './factors';
13-
import type { ActJWTClaim } from './jwt';
13+
import type { ActClaim } from './jwtv2';
1414
import type {
1515
OrganizationCustomPermissionKey,
1616
OrganizationCustomRoleKey,
@@ -122,7 +122,7 @@ export interface SessionResource extends ClerkResource {
122122
lastActiveToken: TokenResource | null;
123123
lastActiveOrganizationId: string | null;
124124
lastActiveAt: Date;
125-
actor: ActJWTClaim | null;
125+
actor: ActClaim | null;
126126
tasks: Array<SessionTask> | null;
127127
currentTask?: SessionTask;
128128
/**
@@ -190,7 +190,7 @@ export interface SessionWithActivitiesResource extends ClerkResource {
190190
abandonAt: Date;
191191
lastActiveAt: Date;
192192
latestActivity: SessionActivity;
193-
actor: ActJWTClaim | null;
193+
actor: ActClaim | null;
194194

195195
revoke: () => Promise<SessionWithActivitiesResource>;
196196
}

‎packages/vue/src/types.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type {
2-
ActJWTClaim,
2+
ActClaim,
33
Clerk,
44
ClerkOptions,
55
ClientResource,
@@ -19,7 +19,7 @@ export interface VueClerkInjectionKeyType {
1919
authCtx: ComputedRef<{
2020
userId: string | null | undefined;
2121
sessionId: string | null | undefined;
22-
actor: ActJWTClaim | null | undefined;
22+
actor: ActClaim | null | undefined;
2323
orgId: string | null | undefined;
2424
orgRole: OrganizationCustomRoleKey | null | undefined;
2525
orgSlug: string | null | undefined;

0 commit comments

Comments
 (0)
Please sign in to comment.