
Go to your project overview page

Then add another platform. In this platform put the url to your vercel project

Thank you

Okay, so after checks

Same issue happens on my phone (Safari)

So it's clearly Safari doing a weird Safari thing

Maybe it's because of the window.location
try to replace it with absolute URLs
const response = await account.createOAuth2Session(
'discord',
'https://yourwebsite.com',
`https://yourwebsite.com/failure`,
);

The session is being created, I can see it on the dashboard for appwrite

Yes, but it's seems like Safari won't let the 3rd domain cookies to be create

Oh

Maybe your cookies are blocked in Safari > Settings > Privacy

?

Maybe in Safari you'll need to add a custom domain in your Appwrite And set your Vercel app with the same domain (sub-domain)
Check this: https://appwrite.io/docs/custom-domains

I'll try that

Nope

So would a setup like this work?
Appwrite: api.chatx.example.com
Vercel: chatx.example.com

Yes

Ok

You're a life saver @Binyamin, if I could give you a hug right now I would

All sorted

Safari likes my domain now

<a:ablobattention:492776678742032395>

Great

And now I sleep <a:aPES_Sleep:513527329738194954>

[SOLVED] Integrating Discord Oauth issues
Recommended threads
- Appwrite Cloud Custom Domains Issue
I’m trying to configure my custom domain api.kondri.lt (CNAME pointing to appwrite.network., also tried fra.cloud.appwrite.io with no luck ) but encountering a ...
- Persistent 401 Unauthorized on all authe...
Hello, I'm facing a critical 401 Unauthorized error on my admin panel app and have exhausted all debugging options. The Problem: When my React app on localhos...
- OpenAI Whisper on Appwrite Sites
Hey guys, just wondering if I can serve an OpenAI Whisper AI on appwrite / appwrite sites. tiny model is like ~40-50MB
