I am having a bug where I login as User A but when I refresh the page it's logged in for User B for some reason. I solved the issue by removing all my cache in browser probably due to session confusion.
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).