Skip to content

Commit

Permalink
feat: add via MFA login flow init parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-jonas committed Jan 24, 2024
1 parent aeb1938 commit 5980a9b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/routes/login.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export const createLoginRoute: RouteCreator =
refresh = "",
return_to = "",
organization = "",
via = "",
login_challenge,
} = req.query
const { frontend, kratosBrowserUrl, logoUrl, extraPartials } =
Expand All @@ -38,6 +39,7 @@ export const createLoginRoute: RouteCreator =
refresh: refresh.toString(),
return_to: return_to.toString(),
organization: organization.toString(),
via: via.toString(),
})

if (isQuerySet(login_challenge)) {
Expand Down

0 comments on commit 5980a9b

Please sign in to comment.