# Removing default scopes auth0-react

**URL:** <https://community.auth0.com/t/removing-default-scopes-auth0-react/60307>\
**Category:** Get Help\
**Tags:** auth0-react\
**Created:** [March 30, 2021, 11:20am UTC](https://community.auth0.com/t/removing-default-scopes-auth0-react/60307 "2021-03-30T11:20:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chxry](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/chxry/32/28467_2.png) [@chxry](https://community.auth0.com/u/chxry)\
**Post date:** [March 30, 2021, 11:20am UTC](https://community.auth0.com/t/removing-default-scopes-auth0-react/60307/1 "2021-03-30T11:20:23Z")

</div>

Hi,  
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:  
`...?scope=openid%20profile%20email%20user-read-email...`  
Is there a way to remove openid, profile and email?

---

<div class="post-metadata">

**Author:** ![stephanie.chamblee](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stephanie.chamblee/32/26087_2.png) [@stephanie.chamblee](https://community.auth0.com/u/stephanie.chamblee)\
**Post date:** [March 31, 2021, 6:53pm UTC](https://community.auth0.com/t/removing-default-scopes-auth0-react/60307/3 "2021-03-31T18:53:53Z")

</div>

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`: [https://auth0.github.io/auth0-react/interfaces/auth0\_provider.auth0provideroptions.html#advancedoptions](https://auth0.github.io/auth0-react/interfaces/auth0_provider.auth0provideroptions.html#advancedoptions)

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

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [April 15, 2021, 6:53pm UTC](https://community.auth0.com/t/removing-default-scopes-auth0-react/60307/4 "2021-04-15T18:53:53Z")

</div>

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