
I have 2 different websites using the same appwrite project, and accounts. Is there anyway to SSO between them? They are both running on vue, I just don't want to have to log in to both sites separately.

Same endpoint? If so, the browser would have the cookie that authenticated the user...but you might run into a 3rd party cookie problem 🧐

Sorry just saw your response, yes same browser

Ya so it could work

so the .getAccount() should pull the cookie data that is saved from one endpoint on another?

Yes because cookies are attached to the domain not the app that uses it. That said, if it's a 3rd party cookie, it might be blocked

Does subdomain matter? Like login on x.example.com and try to share the login on y.example.com

You would need to use the same Appwrite endpoint so that the cookie is shared. But you apps would need to have the same base domain to make the cookie 1st party...so that might not actually work out.
Using oauth might be the best approach so that they don't need to put in their password again
Recommended threads
- "The document data is missing. Try again...
Hello, I am getting this error suddenly. I have been using this service for a year now, and I haven't made any changes to my code since then. My app was workin...
- Error: The document data is missing. Try...
I am not able to create any document on some of the collection/ DBs. As I can see many of us facing the same issue, need a quick resolution from the Appwrite Te...
- Appwrite Error: 401 Unauthorized on getC...
Hi everyone, I'm getting an error while trying to fetch the current user using Appwrite in my React project. Here's the error log: auth.js:41 GET https://fra....
