Well, you could always fork the core and make changes to the in mem db to write to a file as opposed to being in mem. Other than that, you will have to wait for our generic SQL support
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).