Hi @baynezy,
To answer your questions:
- To add custom parameters to your sign-up flow, you can use the AuthorizationParams interface in the auth0-spa-js library.
- You’re right about the auth token expiring. You can use Auth0 Actions instead, specifically Post User Registration or Post Login. The role assignment happens during the authentication flow, which means that when the user is redirected back to your application, the tokens issued by Auth0 will already contain the newly assigned roles.
If you have any other questions, feel free to reach out.
Have a good one,
Vlad