admin管理员组文章数量:1356342
How can I make dynamic redirect link in confirmation email after user create account?
For example:
If some user gets to the web site using link www.website/project/1 or /project/2 etc. And it doesn't have account and needs to make one. After sign up, user needs to confirm account via email, after confirmation user gets redirected to www.website/ in a new tab.
How can I setup email dynamic redirect link to redirect the user to specific nested route?
How can I make dynamic redirect link in confirmation email after user create account?
For example:
If some user gets to the web site using link www.website./project/1 or /project/2 etc. And it doesn't have account and needs to make one. After sign up, user needs to confirm account via email, after confirmation user gets redirected to www.website./ in a new tab.
How can I setup email dynamic redirect link to redirect the user to specific nested route?
Share Improve this question asked Jun 5, 2023 at 19:53 Aleksa_97Aleksa_97 611 silver badge5 bronze badges1 Answer
Reset to default 11You can pass the emailRedirectTo
a full url to the page you want it to go to.
await supabase.auth.signUp({ email, password,
options: {
emailRedirectTo: 'http://example./project/1' // you will have to make the project part dynamic in whichever way the framework you are using allows you to do this.
}
})
You will also need to add these URLs to the Redirect URLs allow list. https://app.supabase./project/_/auth/url-configuration
本文标签: javascriptSupabase Email RedirectStack Overflow
版权声明:本文标题:javascript - Supabase Email Redirect - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1743994371a2572718.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论