diff --git a/apps/api/src/ldap-tfa/ldap-tfa.controller.ts b/apps/api/src/ldap-tfa/ldap-tfa.controller.ts index c991846..5691bc5 100644 --- a/apps/api/src/ldap-tfa/ldap-tfa.controller.ts +++ b/apps/api/src/ldap-tfa/ldap-tfa.controller.ts @@ -24,7 +24,9 @@ export class LdapTfaController extends LdapController { audience: 'auth', }); - return reply.setCookie(env.COOKIE_TOKEN_NAME, token, cookieOptions).status(200).send(); + const user = await this.ldapService.getUser(token); + + return reply.setCookie(env.COOKIE_TOKEN_NAME, token, cookieOptions).status(200).send(user); } catch { throw new HttpException('Unauthorized', HttpStatus.UNAUTHORIZED); }