Basically I want to make an admin role who can change or adds the role to a user that is only limited to a session. That role should go away with the expiration of session.
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).