makes sense. Please feel free to issue a pull request to the library with your addition for these two middlewares, alternatively, you can share the code for them here, and I shall make the changes (assuming your OK with sharing your code).
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).