Supabase.GoTrue.Schemas.UserParams (supabase_gotrue v0.5.2)

View Source

Parameters for updating user profiles.

This schema is used by Supabase.GoTrue.update_user/3 to define the parameters for updating an authenticated user's profile information.

Fields

  • email - New email address for the user
  • phone - New phone number for the user
  • password - New password for the user
  • data - Additional user metadata to update
  • nonce - Optional nonce for email change verification
  • email_redirect_to - URL to redirect after email change confirmation

Summary

Types

t()

@type t() :: %{
  data: map() | nil,
  email: String.t() | nil,
  phone: String.t() | nil,
  password: String.t() | nil,
  nonce: String.t() | nil,
  email_redirect_to: String.t() | nil
}

Functions

parse(attrs)

parse_update(attrs)