From ebbdd47fa2e193f7ff7321cbd6af82d0f90dd219 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Sat, 2 Apr 2022 17:36:15 +0200 Subject: [PATCH] Exclude google login callback endpoint from versioning (#793) --- apps/api/src/app/auth/auth.controller.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/api/src/app/auth/auth.controller.ts b/apps/api/src/app/auth/auth.controller.ts index 5244307dd..513e85b44 100644 --- a/apps/api/src/app/auth/auth.controller.ts +++ b/apps/api/src/app/auth/auth.controller.ts @@ -9,7 +9,9 @@ import { Post, Req, Res, - UseGuards + UseGuards, + Version, + VERSION_NEUTRAL } from '@nestjs/common'; import { AuthGuard } from '@nestjs/passport'; import { StatusCodes, getReasonPhrase } from 'http-status-codes'; @@ -51,6 +53,7 @@ export class AuthController { @Get('google/callback') @UseGuards(AuthGuard('google')) + @Version(VERSION_NEUTRAL) public googleLoginCallback(@Req() req, @Res() res) { // Handles the Google OAuth2 callback const jwt: string = req.user.jwt;