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')