🔮 Sanity Create is here. Writing is reinvented. Try now, no developer setup

Issue with logging in and deploying in Sanity v3.

5 replies
Last updated: Apr 16, 2024
Hey anyone knows how can I login again? 😄
Error: Unauthorized - Session is expired, please re-authenticate. You may need to login again with sanity login.
On v3 there is no sanity login/logout anymore. This error shows when I try to deploy. Because if I run
npm run dev
I can see the backend and I can login / out with no problem. But when trying to deploy I get this message on console.
Apr 15, 2024, 4:26 PM
You can very much still run
sanity logout && sanity login
in V3.
Apr 15, 2024, 5:09 PM
user M
Sanity does not exist… do I have to do a sanity npm install first?
Now with npm create sanity@latest there is no instance of sanity or am I missing something?
Apr 15, 2024, 6:43 PM
npm install --global sanity@latest
I did this
👆
Apr 16, 2024, 10:12 AM
and then I was able to login
Apr 16, 2024, 10:13 AM
but I was not aware that sanity still needed to be install globally
anyway all fixed thanks!
Apr 16, 2024, 10:13 AM

Sanity– build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?