Files
energy_dist/dist/app/common/service/auth.service.d.ts
T
2026-04-21 22:34:39 +08:00

12 lines
427 B
TypeScript

import { JwtService, JwtSignOptions, JwtVerifyOptions } from '@nestjs/jwt';
import { Request } from 'express';
export declare class AuthService {
private jwtService;
constructor(jwtService: JwtService);
create(payload: Buffer | object, options?: JwtSignOptions): Promise<string>;
verify(request: Request, options?: JwtVerifyOptions): Promise<{
sub: number;
}>;
private extractTokenFromHeader;
}