Issue with logging into Sanity.io account via Github method

9 replies
Last updated: Nov 16, 2021
Hey everyone!Sorry if I’m not on the right channel (?) for this.
Since a few days I can not log in to my Sanity account. I used to log in via my Github account and it worked perfectly.

Now I get this message:
“You are not authorized to access this studio. Maybe you could ask someone to invite you to collaborate on this project?
If you think this is an error, verify that you are logged in with the correct account. You are currently logged in as xxxxxx (
xxxxxx@gmail.com )”
What I don’t get is that I don’t
need any invitation since I’m the owner of this account, which I was using until now.I assume it could be because of my location: I sometimes get to travel. I tried with a VPN, it worked a couple of time and then nothing: the same message comes back again and again...

Any clue about this?
I really need to log in to keep working haha... Thanks a lot.
AI Update

I understand how frustrating this is! The "You are not authorized to access this studio" error when you're the project owner is a known issue that can happen for a few different reasons. Let me help you troubleshoot.

First, verify which account you're logged into:

The easiest way to check is using the Sanity CLI. Open your terminal and run:

sanity whoami

This will show you which Sanity account you're currently authenticated with. If you're not logged in or logged into the wrong account, run:

sanity login

Then select GitHub as your login provider to ensure you're using the same account.

Check which projects you have access to:

Run this command to list all projects associated with your current login:

sanity projects list

If your project appears in this list, you have access. If it doesn't appear, that confirms there's an account mismatch issue.

Common causes of this issue:

  1. Multiple accounts with different providers: Based on similar cases in the Sanity community, you should only be able to log in using one provider (GitHub, Google, or email/password). If you've logged in with different providers, you might have accidentally created separate Sanity accounts. Each provider creates a distinct account, even if they use the same email address.

  2. GitHub email mismatch: If you have multiple email addresses associated with your GitHub account, GitHub might be authenticating you with a different email than the one originally used to create your Sanity project.

  3. Organization vs personal account: Sometimes the project is owned by a Sanity organization rather than your personal account, and your personal account needs to be re-invited.

Try accessing Sanity Manage:

Can you log into sanity.io/manage? If so, go to your project and view the Members section. You should see your email with the GitHub logo on your avatar and a role of Administrator. If you don't see this, it confirms the account mismatch.

How to fix it:

Since you're the project owner, the best path forward is to contact Sanity support directly. They can:

  • Verify which account owns the project
  • Check if there are duplicate accounts under different emails
  • Help merge accounts if needed
  • Restore your access if it was accidentally removed

In the meantime:

If you have access to your project's code locally, you can verify your project ID by checking your sanity.config.ts or sanity.json file. When you contact support, provide them with:

  • The project ID
  • The email address shown in the error message
  • The email/GitHub account you originally used to create the project

The VPN working intermittently is likely coincidental - Sanity doesn't typically block access based on location unless there are specific security policies in place for your organization.

Good luck, and support should be able to get you back in quickly!

Hi User. Are you able to log into sanity.io/manage ? If so, are you able to go to your project and view Members? Hopefully you see your email with the GitHub logo on your avatar and a role of Administrator.
If you can’t access Manage, please feel free to DM your project ID and we can investigate.
Hi! Thanks 🙂
I could login this morning, by luck, using the Gmail login method. But sometimes, this doesn’t even work..
And I still can’t log in with the ‘Github method’ I using until now...
Hi User. I believe you should only ever be able to login using one provider (i.e., not switching between them). If Google is the provider, I don’t believe you should be able to login via GitHub or Email/Password. That said, there’s also the distinction between logging into a project and logging into sanity.io/manage .
Hi User. I believe you should only ever be able to login using one provider (i.e., not switching between them). If Google is the provider, I don’t believe you should be able to login via GitHub or Email/Password. That said, there’s also the distinction between logging into a project and logging into sanity.io/manage .
Thanks!I was always using Github, until it stopped working...
But it seems to be working now, at least logging into sanity.io/manage
Thank you

Sanity – Build the way you think, not the way your CMS thinks

Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.

Was this answer helpful?