const kratosAdminURL = process.env.KRATOS_ADMIN_URL
// express.get('/auth/login', loginRoute)
export const loginRoute = (req, res) => {
const request = req.query["request"]
const url = new URL(`${kratosAdminURL}/auth/browser/requests/login`)
url.searchParams.set('request', request)
fetch(url.toString())
.then(r => r.json())
.then((kratos) => res.render('loginView',{ kratos}))
}
Ory Kratos comes with support for a wide range of 2FA protocols such as TOTP, FIDO2 & WebAuthn, works with any UI framework, and only a few lines of code are required to get it up and running.
Configurable login and registration flows, multi-factor authentication, custom identity models, bring your own UI.
Ory Kratos is open source and grows more powerful with every pull-request.
Users create and sign in to accounts using username/email and password combinations, Social Login, passwordless flows, TOTP and more.
Implement proven standards of web security with FIDO2, WebAuthn, TOTP. Use Yubikeys, Google Authenticator or FaceID to reduce friction and increase security.
Administer your userbase and get, create, update or delete identities and their data, with webhooks for even more control.
Use customizable identity models (defining custom fields such as name, address, favorite pet) and create your own interfaces in your style and branding.
Simplify your users' experience and let them use their existing accounts at Google, GitHub, Apple, etc. to sign up and log in. All OIDC providers are supported.
Verify an identity by checking the email, phone number, or physical address of that user. Provide recovery of accounts using "Forgot Password" flows, security codes, etc.
Customer Feedback
The following reviews were collected on our website.
Got Questions? Find Answers Below!
Our Most Frequently Asked Questions