refreshToken -> RefreshToken

This commit is contained in:
x032205
2025-06-19 19:18:02 -04:00
parent 9445f717f4
commit 16c48de031
6 changed files with 13 additions and 13 deletions
+4 -4
View File
@@ -51,7 +51,7 @@ export const registerLoginRouter = async (server: FastifyZodProvider) => {
token: z.string(),
isMfaEnabled: z.boolean(),
mfaMethod: z.string().optional(),
refreshToken: z.string().optional()
RefreshToken: z.string().optional()
})
}
},
@@ -102,7 +102,7 @@ export const registerLoginRouter = async (server: FastifyZodProvider) => {
maxAge: 0
});
return { token: tokens.access, isMfaEnabled: false, refreshToken: tokens.refresh };
return { token: tokens.access, isMfaEnabled: false, RefreshToken: tokens.refresh };
}
});
@@ -131,7 +131,7 @@ export const registerLoginRouter = async (server: FastifyZodProvider) => {
iv: z.string(),
tag: z.string(),
token: z.string(),
refreshToken: z.string().optional()
RefreshToken: z.string().optional()
})
}
},
@@ -175,7 +175,7 @@ export const registerLoginRouter = async (server: FastifyZodProvider) => {
protectedKey: data.user.protectedKey || null,
protectedKeyIV: data.user.protectedKeyIV || null,
protectedKeyTag: data.user.protectedKeyTag || null,
refreshToken: data.token.refresh
RefreshToken: data.token.refresh
} as const;
}
});