@mercury-labs/nest-auth
Version:
Mercury framework auth library. It supports local auth, jwt with both bearer token and cookie, basic auth.
12 lines (11 loc) • 382 B
TypeScript
import { JwtService } from '@nestjs/jwt';
import { Observable } from 'rxjs';
import { IJwtPayload } from '../entities';
export interface IParseJwtTokenActionOptions {
token: string;
}
export declare class ParseJwtTokenAction {
readonly jwtService: JwtService;
constructor(jwtService: JwtService);
handle(dto: IParseJwtTokenActionOptions): Observable<IJwtPayload>;
}