Skip to content

Magic Link generated with generateLink opens the app but is not handled by the SDK #1116

Open
@augustogiavedoni

Description

@augustogiavedoni

Describe the bug

I am generating a Magic Link on my server-less backend using the generateLink method exposed by the admin interface of the Supabase package for Javascript. When pressing the action_link returned by such method, my app opens but the deep-link is not detected by Supabase (I can notice when it does because a flutter: supabase.supabase_flutter: INFO: handle deeplink uri message appears). If I generate a Magic Link using the signInWithOtp method on my app, it works as expected but I lack the possibility to use my custom template.

To Reproduce

Steps to reproduce the behavior:

  1. Generate a Magic Link using the generateLink method exposed by the admin interface (Javascript).
  2. Copy and paste the action_link generated by such method on your phone's web browser.
  3. When asked if your app should be opened press "Yes".
  4. See error

Expected behavior

When pressing the Magic Link generated by generateLink, the user should be able to sign into the app.

Versions:

  • @supabase/supabase-js: 2.48.1
  • supabase_flutter: 2.8.3

Additional context

The Magic Link is generated using a server-less back-end to be able to inject it inside a custom template that also has information related to the user.

Metadata

Metadata

Assignees

No one assigned

    Labels

    authThis issue or pull request is related to authenticationdocumentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions