CliftonOriginal post
Flutter Developer
I have a Flutter app for Mac with a myapp://test custom URI. If I visit that URI in my web browser, it redirects to my app.
But when I try to create a magic URL token like this:
Dart
final session = await account.createMagicURLToken( userId: 'test', email: 'test@example.com', url: 'myapp://test');...I get this error:
AppwriteException: general_argument_invalid, Invalid
urlparam: URL host must be one of: localhost, cloud.appwrite.io, appwrite.io (400)
How can I make the link in the email point to my custom myapp:// URI? 🤔
Summary
The error is due to Appwrite restrictions. Add `cloud.appwrite.io` to the host whitelist in your Appwrite console. Update the code where you set the URL parameter.