You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using auth.admin.generateLink with type magiclink in an edge function and passing the redirectTo param.
However the generated link does not respect the provided redirectTo param and returns the site url.
If I change the redirectTo param in my example to http://127.0.0.1/confirm it works.
However, I am not sure how I feel about this, because in my case I will run the auth.admin.generateLink in an edge function which will be triggered from app-a and should generate a magic-link and redirect to app-b but this does not seem to be possible, right?
Bug report
Describe the bug
I am using
auth.admin.generateLink
with typemagiclink
in an edge function and passing theredirectTo
param.However the generated link does not respect the provided
redirectTo
param and returns the site url.To Reproduce
After triggering the edge function locally this is the response:
Expected behavior
redirect_to
should be set to the param provided (http://localhost:3000/confirm
) instead ofhttp://127.0.0.1:3000/auth/login
The text was updated successfully, but these errors were encountered: