fix redirect to idp if no other method

This commit is contained in:
peintnermax
2024-10-10 17:05:43 +02:00
parent 043dad972d
commit 2ef80e642f
3 changed files with 83 additions and 22 deletions

View File

@@ -97,6 +97,15 @@ export async function getLoginSettings(orgId?: string) {
)().then((resp) => (resp ? fromJson(LoginSettingsSchema, resp) : undefined));
}
export async function listIDPLinks(userId: string) {
return userService.listIDPLinks(
{
userId,
},
{},
);
}
export async function addOTPEmail(userId: string) {
return userService.addOTPEmail(
{