Error connecting to Sanity studio and resolving the issue of not being authorized to access the studio.
sanity loginYou need to be authenticated to use the cli/client as well as the site.
If that does not work, you need to tell us where the error occurs
user Y)
oc05323ky) to this project yet.
y), then go to members and invite this new email address you are attempting to sign in with.
The other option is to instead during this process sign in with the correct email that is an admin:
I initialized sanity following the guide on your documentation, once installed I connected to the CLI with sanity login, when I went to localhost:3333 to connect with the same account I get this error:
bbe**************<mailto:k@gmail.com|k@gmail.com>admin of the project. 2. You are attempting to connect the project with a react app, but you don’t have access because your client hasn’t authorized you to be a member or admin of the project yet.
3. So you need to either
A) have them log in and invite you then following the steps I mentioned above OR B) create a new project using your email credentials as the admin account (seeing as how this project looks to be empty), and then invite your client once it is set up if needed, linking your react app to the new project (and in this case yes you can follow that guide to create a project)I hope that helps, sorry for any confusion
sanity init
sanity helpfor more specific commands and information that may be helpful commands for you
Was this answer helpful?
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.