Go to your project overview page
[SOLVED] Integrating Discord Oauth issues
Votes
0
Replies
24
Participants
Unknown
Messages
25
Then add another platform. In this platform put the url to your vercel project
Rank 2: Process
Thank you
Rank 2: Process
Okay, so after checks
Rank 2: Process
Same issue happens on my phone (Safari)
Rank 2: Process
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`, );Rank 2: Process
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
Rank 2: Process
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
Rank 2: Process
I'll try that
Rank 2: Process
Nope
Rank 2: Process
So would a setup like this work?
Appwrite: api.chatx.example.com
Vercel: chatx.example.com
Yes
Rank 2: Process
Ok
Rank 2: Process
You're a life saver @Binyamin, if I could give you a hug right now I would
Rank 2: Process
All sorted
Rank 2: Process
Safari likes my domain now

Great
Rank 2: Process
And now I sleep 
Rank 2: Process
[SOLVED] Integrating Discord Oauth issues