@katalysttech/auth
Version:
A flexible authentication module for NestJS applications with JWT and refresh token support
30 lines (29 loc) • 570 B
TypeScript
export * from './auth-options.interface';
export interface TokenPayload {
sub: any;
username?: string;
[key: string]: any;
}
export interface AuthTokens {
accessToken: string;
refreshToken: string;
expiresIn: number;
}
export interface RefreshTokenPayload {
sub: any;
refreshTokenId: string;
}
export interface LoginDto {
username: string;
password: string;
}
export interface AuthUser {
id: string | number;
[key: string]: any;
}
export interface TimeUnits {
s: number;
m: number;
h: number;
d: number;
}