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

Improve documentation for Password Reset When Forgotten #66

Open
arimet opened this issue Aug 6, 2024 · 0 comments
Open

Improve documentation for Password Reset When Forgotten #66

arimet opened this issue Aug 6, 2024 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@arimet
Copy link
Contributor

arimet commented Aug 6, 2024

Problem

Currently, the doc for the forgotten password part is only based on the Supabase Dashboard.

However, when developing locally, the sections shown in the dashboard do not exist.

Solution

Improve documentation by adding a modification section via the config.toml file.

1 Go to your config.toml file
2. In [auth] section set site_url to your application URL
3. In [auth], add the following URL in the additional_redirect_urls = [{APPLICATION_URL}}/auth-callback"]
4. Add an [auth.email.templace.recovery] section with the following option

[auth.email.template.recovery]
subject = "Reset Password"
content_path = "./supabase/templates/recovery.html"

In Recovery email template set the auth-callback redirection

<html>
  <body>
    <h2>Reset Password</h2>
    <p><a href="{{ .ConfirmationURL }}/auth-callback">Reset your password</a></p>
  </body>
</html>
@slax57 slax57 added the documentation Improvements or additions to documentation label Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants