Hi, I'm usinb supertokens react + node with email and password recipe. I need to assign roles to the user. Like assign an attribute like admin and after login if the user is admin I need to conditionally render some items. What is the possibility of doing this? Also is there any way to make user an admin from the supertokens dashboard instead of the code?
r
rp_st
10/09/2022, 6:57 AM
Hey! Checkout the user roles recipe in the docs.
rp_st
10/09/2022, 6:58 AM
At the moment, it’s only possible to assign roles via code. Dashboard update will be coming soon to allow for this via dashboard as well
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).