FIX: add authentication to swagger

This commit is contained in:
Gabriel Rosa
2023-02-08 15:23:49 -03:00
parent cdba41dffa
commit 8043635b1c
9 changed files with 621 additions and 45 deletions
+2 -1
View File
@@ -9,7 +9,7 @@ import {
UseFilters,
Get,
} from '@nestjs/common';
import { ApiTags } from '@nestjs/swagger';
import { ApiSecurity, ApiTags } from '@nestjs/swagger';
import {
AuthChangePasswordRequest,
AuthResetPasswordRequest,
@@ -203,6 +203,7 @@ export class AuthController {
}
@Authenticated()
@ApiSecurity('access-token')
@Get('verify-access-token')
@HttpCode(HttpStatus.OK)
verifyAccessToken() {