UNPKG

@webundsoehne/nestjs-auth0-guard

Version:

NestJS Auth0 Guard

18 lines (17 loc) 745 B
import { Strategy } from 'passport-jwt'; import { Auth0Options, Auth0RequestProperty, Auth0TokenPayload, Auth0TokenUser, RequestParam } from '../auth0.interface'; import { Auth0Service } from '../auth0.service'; declare const Auth0JwtStrategy_base: new (...args: any[]) => Strategy; export declare class Auth0JwtStrategy extends Auth0JwtStrategy_base { private readonly auth0Service; private readonly HttpException; private readonly namespace; constructor(options: Auth0Options, auth0Service: Auth0Service, inject: { [name: string]: any; }); validate({ auth0, params: { id } }: { auth0?: Auth0RequestProperty; params: RequestParam; }, payload: Auth0TokenPayload): Auth0TokenUser; } export {};