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
- self-hosted auth: /v1/account 404 on saf...
Project created in React/Next.js, Appwrite version 1.6.0. Authentication works in all browsers except Safari (ios), where an attempt to connect to {endpoint}/v1...
- delete document problems
i don't know what's going on but i get an attribute "tournamentid" not found in the collection when i try to delet the document... but this is just the document...
- Update User Error
```ts const { users, databases } = await createAdminClient(); const session = await getLoggedInUser(); const user = await users.get(session.$id); if (!use...