Removing default scopes auth0-react

If I set the scope in Auth0Provider the login url still has the default scopes included.
My code:
<Auth0Provider scope="user-read-email" ...
The login url:
Is there a way to remove openid, profile and email?

Hi @chxry,

The React SDK will always send the default scopes along with any scopes you pass in the scope parameter passed to the Auth0Provider. You can alter the default scopes by passing advancedOptions: { defaultScope: 'openid email' } to the Auth0Provider: Auth0ProviderOptions | @auth0/auth0-react

At least openid and email will be required for authentication in most cases though.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.