Trouble logging into Sanity community account, multiple login methods causing confusion.

35 replies
Last updated: Jun 12, 2023
Hi!
I have a sanity community account (
https://www.sanity.io/exchange/community/shayan ) but, everytime I try to login, it goes to a seemingly completely empty account. How do I log in properly?
AI Update

This is a common issue that happens when you've logged into Sanity using different authentication methods (like GitHub, Google, or email), which creates separate accounts. Here's what's happening and how to fix it:

The Problem

Sanity's authentication system creates a separate account for each login method you use. So if you originally created your community profile using one method (say, GitHub) but later logged in using a different method (like Google), you've actually created two completely different accounts. When you log in with the "wrong" method, you see an empty profile because that account has no contributions or data associated with it.

This is exactly what happened in a similar case where someone had one profile with their contributions and another empty one, depending on which login method they used.

The Solution

You need to figure out which login method is associated with your original account (the one at sanity.io/exchange/community/shayan) and consistently use that method going forward.

Try these steps:

  1. Log out completely from both sanity.io/manage and the community portal
  2. Try different login methods one at a time (GitHub, Google, email) to see which one shows your contributions
  3. Stick with that method - unfortunately, you can't link multiple authentication methods to a single Sanity account

If You've Lost Access

If your original account is tied to an email you no longer have access to, you'll need help from Sanity support. Based on the community discussion I linked above, Sanity staff can manually migrate your contributions and data to your new account.

You can reach out on the Sanity Discord community or contact support directly. When you do, they'll ask you to:

  • Log in with your preferred/accessible login method
  • Share your profile document ID (found when you click on your profile in the community portal)
  • They can then transfer your contributions to that account

Important Note

This is a known limitation of Sanity's authentication system - each login provider creates a distinct account, which can definitely be confusing. Make sure to note which method works once you find it, so you don't run into this issue again!

Hi User, first question would be what do you mean by empty?
Logging in should always be straightforward, and put you into the Snanity Management interface.

There you can create projects and datasets, for example, and then control all sorts of useful things about them. But on a first use, you won't have any of these yet.

Here's a really very nice way to get started -- from your dev environment, it will lead you through everything to rapidly get started. It creates the project and dataset for you...

I just tried it to be sure, and once it gets to having you create the dev project, it will ask you to log in if you already have a Sanity login, on about the second or third step -- and then continue automating all needed.

First, though, it'll give you a choice of projects, there on the web, so you can take one closest to what you have in mind for first ideas.

Here's the link, and good fortune
šŸ™‚ . Once you've got the project started, then you should see it when you log in to Sanity itself.

https://www.sanity.io/docs/getting-started-with-sanity
Best,
User
I have a plugin posted from a while back: https://www.sanity.io/plugins/sanity-typed-schema-builder
But the community studio has "no matching documents" in every tab. I think it created another user for me, somehow.
Hmm...you probably have two problems here, it seems...
The first is that this looks like a project in much transition, and the first step at least is required even so, as what you referenced was a Sanity 2 project. Here is where he is now, and you can read the Readme for the rest of the details.


https://www.npmjs.com/package/@sanity-typed/schema-builder
Now, as far as what you're seeing on the community site, I think someone with internal access will need to help with that, perhaps
user A
or
user M
, so I will mention for their attention here.
One might imagine your original project got pulled because it was attached to V2 Sanity, no? I don't imagine they actually created a different user account for you, though -- and you are able to sign in, as another evidence on that.

Let's see what others can say...
Yes, I am the owner of the package that migrated. I'm attempting to log into the sanity community studio explicitly so I can change it to the new package. But, for whatever reason, it doesn't show up at all anywhere in the studio. As you can see in the screenshot, it even says my profile has no handle, which also isn't true:

https://www.sanity.io/exchange/community/shayan
I think, for whatever reason, it just created an entirely separate user for me, but I want to go back to that one so I can edit it.
Apologies, just had realized separately that you are the originator of the package, Shayan.
Again, though, it's going to take someone with internal access to track down what the state of your login and its connections has become.

Either of the two mentioned should be able to do that, or contact someone in the position to do so. And I think I see
user M
on the case šŸ™‚
It sounds like you logged in using a different provider than you did for the account that authored the plugin.
Yep I just confirmed. It looks like you have one profile named User and one named User (Shayan). Try logging out and choosing a different login method.
There's a good chance it's linked to an email address I no longer have access to. No idea how to deal with that.
Also, attempting to log out takes me to this screen. "Cancel" hangs forever, "Authorize" just takes me back.
Are you just able to make my login methods for Saiichi work for Shayan? I'll do whatever you need to verify I'm the same person.
Can you also log out of sanity.io/manage ? If you’ve lost access to that account I can just add your new account back into the authors array on the plugin document
I'm fully logged out at this point
I’ll just add you back, then!
lmk which login method is the right one at this point. The email with saiichi in it and the github account are both accessible, the email with shayan in it is not.
It’ll be the one with saiichi in it, but I can’t see which method it uses. Do you remember how you logged in earlier to the new account?
uhhhh sign in with google? I'd prefer google and github to work tbh
The truly unfortunate thing about our login is that you can’t use two methods to sign in to one account. It always has to be the same one. Which creates confusion like this šŸ˜ž
ah, gotcha
in that case, let's use the github account
Ok, to make sure I set up the correct account, can you log in using github, click on your profile document, then share the document ID with me? Then I’ll just move all of the data over to it.
log into /manage or into the community portal?
The community portal. It may be annoying and require you to log into both, though.
e-00a3be0d1431f24582077a61d1e92b12
Hopefully this is what you're talking about?
Yep! Can you paste it here?
e-00a3be0d1431f24582077a61d1e92b12
My github bio is more relevant than ever
Hahah. That’s excellent.
Ok, does the plugin show up in your contributions now?
yes, excellent 'bio' šŸ™‚
My parents thought a name with three vowels in a row and two of them being the same next to each other wasn't challenging enough, they also gave me a name with two a's that don't make the "a" sound.
umm let me check
I see it all! thank you!
Nice! Sorry it was such a run around.
...excellently international, and interestingly thoughtful, on the names šŸ™‚
Glad you persons got it, and proper regrets for the novice trip,
user J
Let’s use greetings like ā€œHey Everyone,ā€ ā€œHi, Y’all," or ā€œHello, Folksā€ to make sure everyone in the community is included. Please read the Sanity Community Code of Conduct to stay updated on expected communication & behavior in our spaces: https://www.sanity.io/docs/community-code-of-conduct

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?