@point3/logto-module
Version:
포인트3 내부 logto Authentication 모듈입니다
32 lines (31 loc) • 705 B
TypeScript
export declare class AccessToken {
static THRESHOLD_TIME: number;
accountId: string;
token: string;
expiresAt: Date;
constructor(accountId: string, token: string, expireInSeconds: number);
isExpired(): boolean;
toString(): string;
}
export type AccessTokenPayload = {
jti: string;
sub: string;
iat: number;
exp: number;
scope: string;
client_id: string;
iss: string;
aud: string;
userRoles: string[];
clientId: string;
managerId: string;
userScopes?: string[];
};
export type IdTokenPayload = {
sub: string;
email: string;
email_verified: boolean;
name: string;
phone_number: string;
username: string;
};