nest-phylax
Version:
Security library for NestJS
30 lines (29 loc) • 875 B
TypeScript
import { JwtAuthService } from '../services/jwt.auth.service';
import { PasswordLoginDto } from '../types';
export declare class PasswordLoginController {
private readonly jwtAuthService;
constructor(jwtAuthService: JwtAuthService);
passwordLogin(dto: PasswordLoginDto): Promise<{
message: string;
data: {
accessToken: import("../..").Jwt;
refreshToken: import("../..").Jwt;
};
}>;
}
export declare class RefreshTokenController {
private readonly jwtAuthService;
constructor(jwtAuthService: JwtAuthService);
refreshToken(dto: {
refreshToken: string;
}): Promise<{
message: string;
data: {
accessToken: {
value: string;
sub: string;
role: string;
};
};
}>;
}