@aylmao actually on second thought, it might be useful to have this put in the core until we have the generic solution. Since others have asked too. It would be a good mid way until then.
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).