You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
623 B
39 lines
623 B
export interface BaseClaims { |
|
iss: string; |
|
exp?: number; |
|
} |
|
|
|
export interface AccessToken { |
|
type: "access"; |
|
aud: number; |
|
name: string; |
|
} |
|
|
|
export interface RefreshToken { |
|
type: "refresh"; |
|
aud: number; |
|
name: string; |
|
} |
|
|
|
export interface DeviceRegistrationToken { |
|
type: "device_reg"; |
|
} |
|
|
|
export interface DeviceToken { |
|
type: "device"; |
|
aud: string; |
|
id: number; |
|
} |
|
|
|
export interface SuperuserToken { |
|
type: "superuser"; |
|
} |
|
|
|
export type TokenClaimTypes = |
|
| AccessToken |
|
| RefreshToken |
|
| DeviceRegistrationToken |
|
| DeviceToken |
|
| SuperuserToken; |
|
|
|
export type TokenClaims = TokenClaimTypes & BaseClaims;
|
|
|