Repository navigation
Expand file tree
/
Copy pathauthObject.ts
More file actions
48 lines (47 loc) · 1.49 KB
/
Copy pathauthObject.ts
File metadata and controls
48 lines (47 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import type { ActClaim, JwtPayload, SessionStatusClaim } from './jwtv2';
import type { OrganizationCustomPermissionKey, OrganizationCustomRoleKey } from './organizationMembership';
/**
* @internal
*/
export type SharedSignedInAuthObjectProperties = {
/**
* The current user's [session claims](https://clerk.com/docs/guides/sessions/session-tokens).
*/
sessionClaims: JwtPayload;
/**
* The ID of the current session.
*/
sessionId: string;
/**
* The current state of the session.
*/
sessionStatus: SessionStatusClaim | null;
/**
* Holds identifier for the user that is impersonating the current user. Read more about [impersonation](https://clerk.com/docs/guides/users/impersonation).
*/
actor: ActClaim | undefined;
/**
* The ID of the current user.
*/
userId: string;
/**
* The ID of the user's Active Organization.
*/
orgId: string | undefined;
/**
* The current user's Role in their Active Organization.
*/
orgRole: OrganizationCustomRoleKey | undefined;
/**
* The URL-friendly identifier of the user's Active Organization.
*/
orgSlug: string | undefined;
/**
* The current user's Organization Permissions.
*/
orgPermissions: OrganizationCustomPermissionKey[] | undefined;
/**
* An array where each item represents the number of minutes since the last verification of a first or second factor: `[firstFactorAge, secondFactorAge]`.
*/
factorVerificationAge: [firstFactorAge: number, secondFactorAge: number] | null;
};