wow just found out about supertokens, i was blocking 0auth because it was hosted and i looked for an opensource solution so nice its partly opensourced.
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).