-
Just wondering how I could go about switching from an admin user to a regular user given the regular user's ID. The only difference between the users is their role column in my DB. I am specifically using the auth0 strategy, but I am hoping this question is general enough to be asked here. |
Beta Was this translation helpful? Give feedback.
Answered by
sergiodxa
Jan 23, 2023
Replies: 1 comment 6 replies
-
I'm not sure how this relates to Remix Auth and authentication in general, if as you said the difference between a regular and admin user is a role column in the DB you just need to change that in your DB for your user, this is completely outside authentication and falls into your app specific business logic. |
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
jmaldon1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm not sure how this relates to Remix Auth and authentication in general, if as you said the difference between a regular and admin user is a role column in the DB you just need to change that in your DB for your user, this is completely outside authentication and falls into your app specific business logic.