Q: Can I redirect back to my mobile app?

ColonialCricket2 months ago

I have managed to setup the auth_success_redirect from the widget back to my website. But what if I want to use the widget with my mobile app? Please help

terra

Jeffadmin2 months ago

Hey! You can easily redirect back to your mobile app using our widget and deep links!. You can set the auth_success_redirect to a deep link such as yourapp://on_auth_success and the widget will redirect you to that path in your app! We will also send the following pieces of information as query parameters: user_id, reference_id, resource i.e the device that was authenticated


ColonialCricket2 months ago

How would I go about creating a deep link?


terra

Jeffadmin2 months ago

Hi,

Creating deep links is platform dependent and varies per SDK, but here are some resources to help you. Ensure that when implementing the deep-links, you account for the query parameters that will be passed in when routing to another Activity/View in your app.

  1. Flutter SDK - https://docs.flutter.dev/ui/navigation/deep-linking
  2. Android - https://developer.android.com/training/app-links/deep-linking
  3. iOS SDK - https://developer.apple.com/documentation/xcode/deep-linking

ColonialCricket2 months ago

Thank you, can I not use the widget at all?


terra

Jeffadmin2 months ago

Of course, you can use our authentication REST endpoints