Back

Email Verification URL

  • 0
  • Self Hosted
  • Auth
Bob
22 Aug, 2024, 10:03

Here's a revised version of your message in English:

Hi there,

I'm currently implementing email verification for an Apple Client using Appwrite as the backend. Appwrite appends the userId, secret code, and expiration time to my domain and then sends it to the user's email. I understand that I need to capture the userId and secret code from the URL and use them in the updateVerification function.

I plan to implement a web service to catch these parameters and perform the verification update. However, the Apple Client SDK only sends a URL pointing to my Appwrite app.

How can I add a route to the domain where Appwrite is hosted (e.g., appwrite.my.domain/email-verification) or to a different domain (e.g., verification.appwrite.my.domain)?

EROR: Invalid url param: URL host must be one of: localhost, appwrite.my.domain, console.appwrite.my.domain, local

TL;DR
Developers want to host email verification on a separate domain under Appwrite's reverse proxy. They aim to capture user ID and secret code from the verification URL for updating purposes in Appwrite. An error currently restricts the URL host. To solve this, developers should add a route in Appwrite to handle the verification service on a different domain correctly.
Joshi
22 Aug, 2024, 10:10

Add your domain here

Bob
22 Aug, 2024, 10:13

I got it. I will try it now. Thank you so much.

Joshi
22 Aug, 2024, 10:16

you're welcome

Bob
22 Aug, 2024, 10:21

I'm using Appwrite along with its built-in reverse proxy. How can I leverage Appwrite's built-in reverse proxy to manage my verification service? For example, Appwrite is hosted at appwrite.my.domain, and the verification service is at verification.appwrite.my.domain.

Joshi
22 Aug, 2024, 10:45

Appwrite utilizes traefik for routing. You have to explain more in detail what "verification.appwrite.my.domain" is supposed to be

Joshi
22 Aug, 2024, 10:46

Do you want to host something yourself?

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