Browse Source

Exclude google login callback endpoint from versioning (#793)

pull/794/head
Thomas Kaul 3 years ago
committed by GitHub
parent
commit
ebbdd47fa2
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      apps/api/src/app/auth/auth.controller.ts

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

Loading…
Cancel
Save