Back

Send appwrite function url as url redirect url param for creating magic url session

  • 0
  • Auth
  • Functions
saifu
29 Mar, 2024, 20:37

I would like to send appwrite function url as url redirect param for creating magic url session.

The error I am getting is "URL host must be one of: localhost, cloud.appwrite.io, appwrite.io

Appwrite function url is like *.appwrite.global

TL;DR
To send the Appwrite function URL as a URL redirect parameter for creating a magic URL session, you need to use a custom domain with Appwrite Cloud. Set the custom domain as a hostname in your project and provide it as the URL for the magic URL session. This should resolve the error message you're encountering.
Ryan
29 Mar, 2024, 20:55

Are you using Cloud?

saifu
29 Mar, 2024, 20:55

Yes

Ryan
29 Mar, 2024, 20:57

Are you using a custom domain at all?

saifu
29 Mar, 2024, 20:58

No.. I have created an appwrite function.. I want to send the function url in the url param of createmagicurlsession

Ryan
29 Mar, 2024, 20:59

It looks like the only way to do what you want would be to use a custom domain name with Appwrite Cloud. You'd be able to set the custom domain as a hostname in your project which should allow you to provide it as a URL for the magic URL session

saifu
29 Mar, 2024, 21:00

But how can I set *.appwrite.global as a custom domain

saifu
29 Mar, 2024, 21:00

?

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