From 40fe965a6ddbcc00e289c8890932a49d5f9cca3d Mon Sep 17 00:00:00 2001 From: Matthieu Haineault Date: Fri, 19 Dec 2025 10:16:30 -0500 Subject: [PATCH] fix(redirect): fix url redirect --- .../authentication/controllers/auth.controller.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/identity-and-account/authentication/controllers/auth.controller.ts b/src/identity-and-account/authentication/controllers/auth.controller.ts index 3259f65..33ff1f0 100644 --- a/src/identity-and-account/authentication/controllers/auth.controller.ts +++ b/src/identity-and-account/authentication/controllers/auth.controller.ts @@ -1,6 +1,7 @@ import { Controller, Get, Req, Res, UnauthorizedException, UseGuards } from '@nestjs/common'; import { OIDCLoginGuard } from '../guards/authentik-auth.guard'; import { Request, Response } from 'express'; +import { env } from 'node:process'; @Controller('auth') export class AuthController { @@ -12,8 +13,8 @@ export class AuthController { @Get('/callback') @UseGuards(OIDCLoginGuard) loginCallback(@Req() req: Request, @Res() res: Response) { - res.redirect('process.env.REDIRECT_URL_STAGING'); - // res.redirect('process.env.REDIRECT_URL_DEV'); + res.redirect(process.env.REDIRECT_URL_STAGING!); + // res.redirect(process.env.REDIRECT_URL_DEV!); } @Get('/me')