🔨」 fix: now redirecting on /

This commit is contained in:
2025-10-14 13:48:01 +02:00
parent 967b9d8b88
commit cf59dd0761
2 changed files with 2 additions and 6 deletions

View File

@ -45,9 +45,7 @@ export async function gLogCallback(request, reply, fastify) {
path: '/',
secure: env !== 'development',
sameSite: 'lax',
})
.code(200)
.send({ msg: "Login successful" });
}).redirect('/');
} catch (error) {
fastify.log.error(error);
reply.code(500).send({ error: 'Internal server error' });

View File

@ -54,9 +54,7 @@ export async function gRegisterCallback(request, reply, fastify) {
path: '/',
secure: env !== 'development',
sameSite: 'lax',
})
.code(200)
.send({ msg: "Register successful" });
}).redirect('/');
} catch (error) {
fastify.log.error(error);
reply.code(500).send({ error: 'Internal server error' });