
but what is url. i have not eny url to past

print(res.secret); - empty string

Anyway, updateMagicURLSession
should be called on the page the user hits when clicking the link, not directly after calling createMagicURLSession
- you don’t have the secret here yet

I’m not much into mobile dev, but I believe you should be able to create a “deeplink” which hits a specific page with your app?

buy if user hit to link he get some page with your Magic url login flow is missing a propper riderect URL. Please check the Magic URL docs and send request for new session with a valid redirect URl

Not sure how query parameters would be handled with that

Because you haven’t set a redirect URL - you need to pass one in createMagicURLSession
as the url
parameter

yes. but how i can to know what url it is must be? i have no my domain or some like that

i use appwrite cloud

i get this lisnk. and it give your Magic url login flow is missing a propper riderect URL. Please check the Magic URL docs and send request for new session with a valid redirect URl

My understanding here is that you’ll have to create a deeplink to a component in your app that can handle the completion of the login process

As I’ve said, I don’t really know mobile dev - you might want to wait for someone who does and might have a better solution here.

thank you

ideclon is correct. You must implement deep linking. There are resources online regarding deep linking. For example: https://docs.flutter.dev/ui/navigation/deep-linking

`<intent-filter> <action android:name="android.intent.action.MAIN"/> <category android:name="android.intent.category.LAUNCHER"/> </intent-filter> <intent-filter android:autoVerify="true" tools:targetApi="m"> <action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:scheme="https"
android:host="cloud.appwrite.io"
android:pathPrefix="/auth/magic-url" />
</intent-filter>`

`final GoRouter _router = GoRouter(routes: [ GoRoute( path: "/", builder: ((context, state) => const MainAuthScreen()), ), GoRoute( name: "/auth/magic-url", path: "/profile", builder: ((context, state) => const ProfileScreen()), ),
]);`

app is open but i see GoException: no routes for location: https://cloud.appwrite.io/auth/magic-url?userId=1694069134667&secret=d2a7ad2c398d34f3b4bc9b7fedb7d21c77dd1fc374c0df90d4cc5f4947eb7707da4cfcf5f6d348dec20a4c75459bf3cb88927b858e7c24a753ab2ca8e1d8f5234359deb0c1e90813851d49de9bbfafbcf0e81450c633cb45daa6b4144c7a94707dcfdc5454edfe3600a5eec40f112fb49eb6c18a026cfcdc59bb55edadd1db21&expire=2023-09-14+08:38:46.254&project=myapp

can you show your complete GoRoute
config and implementation?

` MaterialApp.router( builder: (context, child) { return ScrollConfiguration( behavior: MyBehavior(), child: child!, ); }, debugShowCheckedModeBanner: false, title: 'Iskra', theme: MaterialThemeData().materialThemeData, routerConfig: _router, ), ); }, ); } }
final GoRouter _router = GoRouter(routes: [ GoRoute( path: "/", builder: ((context, state) => const MainAuthScreen()), ), GoRoute( name: "/auth/magic-url", path: "/profile", builder: ((context, state) => const ProfileScreen()), ), ]);

You’ve set your path for handling magic link session on path: /profile
. Try using /auth/magic-url
as path
.

Thank you Sir!!!

Great! Can this thread be marked [Solved] then?

yes, sure. Do you know, how i can change icon and text in recived mail? and How i can get userId and secret form this url?

v1.4 allowes you to modify email templates, but Cloud is not on 1.4 yet.

make sure to use 3 backticks for multiline code like:
```xml
<xml>
```
Recommended threads
- OAuth2 and Email/Passwort is not working...
Hello guys, after updating to the latest Appwrite Flutter package (17.0.1) I am facing completely weird behavior. None of my login ways are working. Whether the...
- App with randomly scheduled notification...
**Hey everyone! 👋** Building a Flutter app that sends users 1-3 location-based challenges per week based on their preferences. ## The flow: 1. User selects ho...
- Type generation without $id parameter
I'm trying for the first time appwrite on 2 projects and after I've tested appwrite types generation with the cli I'm a little bit confused why it doesn't inclu...
