# Custom social connect injects unwanted scopes

**URL:** <https://community.auth0.com/t/custom-social-connect-injects-unwanted-scopes/133799>\
**Category:** Get Help\
**Tags:** custom-social-connections-branding, connections\
**Created:** [May 9, 2024, 4:13pm UTC](https://community.auth0.com/t/custom-social-connect-injects-unwanted-scopes/133799 "2024-05-09T16:13:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![imponenm](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/imponenm/32/56985_2.png) [@imponenm](https://community.auth0.com/u/imponenm)\
**Post date:** [May 9, 2024, 4:13pm UTC](https://community.auth0.com/t/custom-social-connect-injects-unwanted-scopes/133799/1 "2024-05-09T16:13:44Z")

</div>

Hey all, I’m trying to configure a custom social connection for TikTok.

In theory it’s setup correctly, but Auth0’s Custom Social Extension seems to be injected unwanted scopes that don’t work with TikTok’s /authroize endpoint. I just want to be adding “user.info.basic,user.info.stats”, but the full scope param that Auth0 uses winds up being

“[https://www.googleapis.com/auth/userinfo.email](https://www.googleapis.com/auth/userinfo.email) [https://www.googleapis.com/auth/userinfo.profile](https://www.googleapis.com/auth/userinfo.profile) openid,user.info.basic,user.info.stats”

This is super strange considering it’s using a mix of spaces and commas. Also, there’s nowhere in my configuration where I setup those basic google scopes. I only configured TikTok scopes.

Any advice on this? Is the custom social extension still a tool that I should even be using? I noticed the latest update on GitHub was from 3 years ago

Thanks

---

<div class="post-metadata">

**Author:** ![imponenm](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/imponenm/32/56985_2.png) [@imponenm](https://community.auth0.com/u/imponenm)\
**Post date:** [May 9, 2024, 4:57pm UTC](https://community.auth0.com/t/custom-social-connect-injects-unwanted-scopes/133799/2 "2024-05-09T16:57:33Z")

</div>

I figured out my own issue. Those scopes were coming from a connection\_scope value I set in my handleAuth() function in my nextJS /login/callback route

I need to check if the social provider is google or my custom connection, and adjust the scope accordingly

---

<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:** [May 23, 2024, 4:57pm UTC](https://community.auth0.com/t/custom-social-connect-injects-unwanted-scopes/133799/3 "2024-05-23T16:57:45Z")

</div>

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