Skip to content

Improve documentation for Password Reset When Forgotten #66

@arimet

Description

@arimet

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions