UNPKG

@alaan/s2s-auth

Version:

Reusable JWT auth module for NestJS service-to-service authentication

8 lines (7 loc) 325 B
import { CanActivate, ExecutionContext } from '@nestjs/common'; import { S2STokenService } from './s2s-token.service'; export declare class S2SJwtAuthGuard implements CanActivate { private readonly s2sTokenService; constructor(s2sTokenService: S2STokenService); canActivate(context: ExecutionContext): boolean; }