# SOLVED: GitHub social connection, Auth0 dev keys work, my own keys return no data

**URL:** <https://community.auth0.com/t/solved-github-social-connection-auth0-dev-keys-work-my-own-keys-return-no-data/55422>\
**Category:** Get Help\
**Tags:** github, social-connections\
**Created:** [December 28, 2020, 5:11pm UTC](https://community.auth0.com/t/solved-github-social-connection-auth0-dev-keys-work-my-own-keys-return-no-data/55422 "2020-12-28T17:11:31Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mountaindude](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mountaindude/32/26541_2.png) [@mountaindude](https://community.auth0.com/u/mountaindude)\
**Post date:** [December 28, 2020, 5:11pm UTC](https://community.auth0.com/t/solved-github-social-connection-auth0-dev-keys-work-my-own-keys-return-no-data/55422/1 "2020-12-28T17:11:31Z")

</div>

Background:  
I’ve added the GitHub social connection, and want to use it as one of several options for logging into a service I’ve created.

Issue:  
When I used Auth0’s dev keys when calling GitHub things work and I get back the email address etc of the user authenticating with GitHub. Nice.  
But: When I use the OAuth app credentials I’ve created in GitHub, I can authenticate without issues, but I don’t get any email address or other user info in the callback to my own service.

I’ve triple checked the client ID of the GitHub OAuth application - it matches the one entered in Auth0’s GitHub settings.

Any ideas of what could cause this?

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [December 30, 2020, 10:35pm UTC](https://community.auth0.com/t/solved-github-social-connection-auth0-dev-keys-work-my-own-keys-return-no-data/55422/3 "2020-12-30T22:35:40Z")

</div>

Hi @mountaindude,

Welcome to the Community!

Are you getting a successful response? This may have to do with the scopes you are requesting.

Also, can you DM me your tenant name so I can take a look at the settings and logs.

---

<div class="post-metadata">

**Author:** ![mountaindude](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mountaindude/32/26541_2.png) [@mountaindude](https://community.auth0.com/u/mountaindude)\
**Post date:** [December 31, 2020, 6:03am UTC](https://community.auth0.com/t/solved-github-social-connection-auth0-dev-keys-work-my-own-keys-return-no-data/55422/4 "2020-12-31T06:03:16Z")

</div>

Yes, getting a successful response both when using Auth0’s dev client id/secret and when using my own. Just that I don’t get anything back when using my own id/secret.

The scopes could very well be involved, but it’s also a bit strange as I don’t change any of my client side code at all. But admittedly - I am using Passport.js and there could very well be something going on in there too, somehow making a difference depending on what id/secret is passed it. A bit far-fetched, but certainly possible.

Will try passing in different scopes to see if it makes a difference, and DM you the tenant name.

Thanks!

---

<div class="post-metadata">

**Author:** ![mountaindude](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mountaindude/32/26541_2.png) [@mountaindude](https://community.auth0.com/u/mountaindude)\
**Post date:** [December 31, 2020, 6:30am UTC](https://community.auth0.com/t/solved-github-social-connection-auth0-dev-keys-work-my-own-keys-return-no-data/55422/5 "2020-12-31T06:30:36Z")

</div>

…and it’s solved.

Turned out to be a scopes issue after all.  
Simply passing in a scope of

_scope: ‘openid email profile’_

solved the whole thing. All good!

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [December 31, 2020, 4:30pm UTC](https://community.auth0.com/t/solved-github-social-connection-auth0-dev-keys-work-my-own-keys-return-no-data/55422/6 "2020-12-31T16:30:24Z")

</div>

Glad you got it resolved!

---

<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:** [January 15, 2021, 4:30pm UTC](https://community.auth0.com/t/solved-github-social-connection-auth0-dev-keys-work-my-own-keys-return-no-data/55422/7 "2021-01-15T16:30:31Z")

</div>

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