mirror of
https://github.com/KeyZox71/knl_meowscendence.git
synced 2026-01-01 06:06:41 +01:00
「🔨」 fix: fixed cookie with google callback
This commit is contained in:
@ -49,7 +49,7 @@ export async function gRegisterCallback(request, reply, fastify) {
|
||||
|
||||
authUserCreate(user.username, fastify)
|
||||
|
||||
const token = fastify.jwt.sign(user);
|
||||
const token = fastify.jwt.sign({ user: user.username});
|
||||
|
||||
return reply
|
||||
.setCookie('token', token, {
|
||||
|
||||
Reference in New Issue
Block a user