@mercury-labs/nest-auth
Version:
Mercury framework auth library. It supports local auth, jwt with both bearer token and cookie, basic auth.
25 lines (24 loc) • 472 B
TypeScript
export interface IJwtPayload<T = string> {
iat: number;
exp: number;
iss: string;
sub: T;
uuid?: string;
username?: string;
}
export interface IJwtPayloadRawDecoded {
iat: number;
exp: number;
iss: string;
sub: string;
uuid?: string;
username?: string;
}
export declare class JwtPayload implements IJwtPayload {
iat: number;
exp: number;
iss: string;
sub: string;
username?: string;
uuid?: string;
}