This commit is contained in:
Daniel Hougaard
2024-01-29 15:10:55 +04:00
parent fc8bd0470f
commit 36a4bf73a6
3 changed files with 41 additions and 11 deletions
+7 -1
View File
@@ -86,7 +86,13 @@ export const registerMfaRouter = async (server: FastifyZodProvider) => {
secure: appCfg.HTTPS_ENABLED
});
return { token: token.access, ...user };
return {
...user,
token: token.access,
protectedKey: user.protectedKey || null,
protectedKeyIV: user.protectedKeyIV || null,
protectedKeyTag: user.protectedKeyTag || null
};
}
});
};