Merge pull request #4565 from Infisical/feat/ENG-3660

Improve 2FA flow
This commit is contained in:
carlosmonastyrski
2025-09-23 20:25:12 -03:00
committed by GitHub
11 changed files with 461 additions and 157 deletions
+3 -1
View File
@@ -255,7 +255,9 @@ export const registerUserRouter = async (server: FastifyZodProvider) => {
totp: z.string()
}),
response: {
200: z.object({})
200: z.object({
recoveryCodes: z.string().array()
})
}
},
onRequest: verifyAuth([AuthMode.JWT], {