Back

Oath Success and Failure Url, is going to a blank page

  • 0
  • Self Hosted
  • Accounts
  • Web
  • Cloud
Yahaya
11 Jun, 2023, 05:40

I have a domain with QSERERS

Which --> designgrid.com.ng

I forward ⏩ the A Record to Vercel where am hosting my Frontend.

Vercel generated an SSL for the domain

In Vercel, I created a CNAME appwrite and VALUE cloud.appwrite.io

I added my domain to Appwrite and successfully verified.

Now my custom endpoint looks like appwrite.designgrid.com.ng

I replaced https://cloud.appwrite.io/v1 With https://appwrite.designgrid.com.ng

In my code

Which now looks like

`client.setEndPoint("https://appwrite.designgrid.com.ng").setProject([My Project ID]);

The question is

When I use the custom domain as the success and failure urls to redirect to

https://appwrite.designgrid.com.ng/dashboard

It shows a blank page for a while then redirect automatically to Appwrite website.

In fact I only want to redirect to my actual domain which is https://designgrid.com.ng/dashboard

TL;DR
The user is experiencing an issue with the Oath Success and Failure URLs redirecting to a blank page. The solution is to ensure that the client endpoint includes "/v1" and that the platform hostname matches the domain being used. They also need to register their front-end app as a platform in the Appwrite console. When setting the success and failure URLs, they should use their own domain, not the Appwrite domain. The user has a domain with QSERERS and has forwarded the A Record to Vercel where their frontend is hosted. They have also created a CNAME record in Vercel for "appwrite" with
Drake
11 Jun, 2023, 06:18

The success and failure urls should be your app, not Appwrite

Yahaya
11 Jun, 2023, 06:19

You mean like

https://designgrid.com.ng

Yahaya
11 Jun, 2023, 06:20

Well it shows an error

Error 400 Invalid success url, says that only localhost and appwrite.designgrid.com.ng

Drake
11 Jun, 2023, 06:23

You need to register your front end app as a platform in your project on the appwrite console

Yahaya
11 Jun, 2023, 06:24

Should the name match exactly 💯 as the my domain

Yahaya
11 Jun, 2023, 06:25

Like rename my Appwrite platform to my domain

Drake
11 Jun, 2023, 06:25

You can use wildcards when adding a platform

Drake
11 Jun, 2023, 06:25

What?

Yahaya
11 Jun, 2023, 06:41

Thank for your hint, my platform hostname is still localhost while am in production. Solved

Camo
12 Jun, 2023, 09:07

client endpoint should be https://appwrite.designgrid.com.ng/v1 , seems that you forgot to add /v1

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more