Skip to content

Unify sign-in and sign-in page to single input for passwordless "code" login #4294

Answered by vinckr
eensander asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @eensander
this should be possible using a custom UI - I guess you only want to offer the code option as authentication method?

From the top of my head I would say you have to create a custom UI that:

  • Initially only shows an email input field.
  • After email submission, checks if the email exists (you might need to implement this check in your backend).
  • Based on the existence of the email, triggers either the login or registration flow with Kratos.
  • Shows the OTP input field and handles the submission.

Personally I think you should also offer at least the password option and potentially also social login for the best UX - but of course that is a different discussion.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@eensander
Comment options

@vinckr
Comment options

@eensander
Comment options

Answer selected by eensander
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants