Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide the ability to set redirect when calling Client.Instance.Auth.SendMagicLink or Client.Instance.Auth.SignIn #20

Closed
MisterJimson opened this issue Jan 15, 2022 · 4 comments

Comments

@MisterJimson
Copy link

Feature request

Provide the ability to set redirect when calling Client.Instance.Auth.SendMagicLink or Client.Instance.Auth.SignIn

Other Supabase client libs include this and it would help for deep linking magic link emails to the application.

@acupofjose
Copy link
Collaborator

acupofjose commented Jan 15, 2022

The SignUp method currently accepts SignUpOptions.RedirectTo but you’re right, we don’t have that for SendMagicLink And it should be added!

@MisterJimson
Copy link
Author

May want to transfer the issue to gotrue-csharp, it doesn't allow me to.

@Kieudung717
Copy link

Feature request

Provide the ability to set redirect when calling Client.Instance.Auth.SendMagicLink or Client.Instance.Auth.SignIn

Other Supabase client libs include this and it would help for deep linking magic link emails to the application.

@acupofjose
Copy link
Collaborator

acupofjose commented Feb 5, 2022

This is available in >= supabase-csharp@0.3.1 and supabase-community/gotrue-csharp@2.3.5

var options = new Supabase.Gotrue.SignInOptions { 
  RedirectTo = "https://my-super-url.com" 
};
await Supabase.Client.Instance.Auth.SendMagicLink("michael@supabase.io", options);

And

var options = new Supabase.Gotrue.SignInOptions { 
  RedirectTo = "https://my-super-url.com" 
};
await Supabase.Client.Instance.Auth.SignIn("michael@supabase.io", options);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants