From 02ffc00640431512f5abd4d54e9d5b565f19869e Mon Sep 17 00:00:00 2001 From: Tom Winter Date: Thu, 29 Feb 2024 10:13:12 +0100 Subject: [PATCH] Update src/auth/core/token.decorator.ts Co-authored-by: Sebastian --- src/auth/core/token.decorator.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/auth/core/token.decorator.ts b/src/auth/core/token.decorator.ts index 9f37354..c0a4034 100644 --- a/src/auth/core/token.decorator.ts +++ b/src/auth/core/token.decorator.ts @@ -1,6 +1,9 @@ import { createParamDecorator, ExecutionContext } from '@nestjs/common'; import { JwtTokenPayload } from './jwt-auth.guard'; +/** + * Extract token payload for advanced checks. + */ export const Token = createParamDecorator( (data: unknown, ctx: ExecutionContext): JwtTokenPayload | undefined => { const request = ctx.switchToHttp().getRequest();