How to implement authentication with different roles using Auth0?

Assume there are two roles in my webapp, i.e. 1. teacher, 2. student. So I want to give user option in the authentication page to choose a role while registering/logging in. Is it possible to implement with Auth0?

Hey there!

It’s not that straightforward. Depending on what part of our stack you use (if you build web or mobile solutions) or you want to build something from scratch yourself using our APIs for authentication and management you can have such functionality.

Here’s the docs that will give you step by step explanation on how roles work and how you can handle them for your scenario potentially: