misc: throw saml sso errors properly

This commit is contained in:
Sheen Capadngan
2024-09-09 19:32:18 +08:00
parent 364302a691
commit ee1b12173a
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -118,7 +118,7 @@ export const registerSamlRouter = async (server: FastifyZodProvider) => {
cb(null, { isUserCompleted, providerAuthToken });
} catch (error) {
logger.error(error);
cb(null, {});
cb(error as Error);
}
},
() => {}