Exclude google login callback endpoint from versioning (#793)

pull/794/head
Thomas Kaul 3 years ago committed by GitHub
parent 3d21e2eac6
commit ebbdd47fa2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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;

Loading…
Cancel
Save