Heyo!
Does someone have a working way for OAuth2 using REST? I am struggling to get it to work, for example using the discord oauth, I am getting:
Request header field x-appwrite-response-format is not allowed by Access-Control-Allow-Headers in preflight response.
you're supposed to redirect the user to that URL
This is what the docs say: https://appwrite.io/docs/references/cloud/client-rest/account#createOAuth2Session
So that's exactly what I am doing
There's also nothing else in the docs about this, it's very empty, so I don't know where to send the user to
tip: refer to the SDKs
it doesn't say enough for me though, that's what the docs say and I am doing, also this is also outdated: https://appwrite.io/docs/products/auth/oauth2
account.createSession
doesn't seem to exist :/
Recommended threads
- Update User Error
```ts const { users, databases } = await createAdminClient(); const session = await getLoggedInUser(); const user = await users.get(session.$id); if (!use...
- apple exchange code to token
hello guys, im new here 🙂 I have created a project and enabled apple oauth, filled all data (client id, key id, p8 file itself etc). I generate oauth code form...
- How to Avoid Double Requests in function...
I'm currently using Appwrite's `functions.createExecution` in my project. I want to avoid double requests when multiple actions (like searching or pagination) a...