Skip to content

Feature: Support for email and password change #18

@lexum0

Description

@lexum0

Goal

Allow a user to change the account's email or password

Email

The function in AuthClient to update the email is:
try await supabase.auth.update(user: UserAttributes(email: email), redirectTo: url)

The function to resend the email:
try await supabase.auth.resend(email: email, type: type)

Password

The function to change the password:
try await supabase.auth.update(user: UserAttributes(password: "newPassw0rd?"))

The function to reset the password:
try await supabase.auth.resetPasswordForEmail(email)

Session

To refresh the session:
try await supabase.auth.refreshSession()

Reference

https://supabase.com/docs/reference/swift/auth-updateuser

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions