Specifying scope before calling loginWithRedirect()

No problem!

You can find all of the loginWithRedirect options in the auth0-react API reference: https://auth0.github.io/auth0-react/interfaces/auth0_context.redirectloginoptions.html

To pass multiple scopes, you can separate each scope with a space in the string, like so:

loginWithRedirect({scope: "read:current_user create:current_user_metadata"})
1 Like