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
- No server error on selfhosted appwrite
Please help me, my clients is ask what happen on their data? How can i make it up again?
- Upgrading selfhost version?
It is okay to upgrade version to higher one, of my current version is 1.7.4 to 1.8.1. Is that safe to do cause my clients already have data on that? Also is a...
- Streamlit UI and local DB
I want to use Appwrite for automation, like run watchdog service every morning 3 am. Anyone got suggestions, already explored github and documentation no luck. ...