I am experiencing issues with the OAuth part of Appwrite. Sometimes, I encounter a 500 error after executing the OAuth process. At other times, the OAuth provider page takes too long to open. Even after redirecting to the success URL, I am unable to fetch the sessions.
U have implemented in this way using it in the methods :
async githubLogin() {
try {
return this.account.createOAuth2Session(
"github",
"http://localhost:5173/blogs",
"http://localhost:5173/login"
);
} catch (error) {
throw error;
}
}
async getAccount() {
try {
return this.account.getSession("current");
} catch (error) {
throw error;
}
}
Is there any error over here or some parts I am missing?
You might be experiencing a problem with 3rd party cookies. There should be previous support posts about that
after the redirect i am getting this type of log for priting the user sessions
did'nt found that forum what was the title of it , so i can search it ?
You can either:
- Update your browser settings to allow 3rd party cookies
- Set up a custom domain that is a sub-domain of your app
☝️ What steven said.
Browsers block third party cookies, and they won't work on localhost anyway 😅
thanks @Steven @VincentGe
Recommended threads
- CORS errors in Obsidian custom plugin
Hi, anyone here familiar with obsidian community plugins? In short: it's a local first note app which supports writing your own add-ons / plugin But I keep get...
- > AppwriteException: The requested servi...
When trying to read or write from my database I get the following error: > AppwriteException: The requested service is disabled. You can enable the service from...
- Courtesy limit reset for non-profit migr...
Hi Team! I'm the architect for a 501(c)(3) non-profit project (Aaria's Blue Elephant) and we just hit our Free plan Database Read limit (currently at 164%). Th...