Supabase.Auth.User.Identity (supabase_auth v1.0.0)

View Source

This schema is used to validate and parse the identity of a user.

Supports both built-in OAuth providers (google, github, etc.) and custom providers defined in Supabase Auth (using the custom:identifier format).

Fields

  • id - The user's ID.
  • user_id - The user's ID.
  • provider - The OAuth provider (built-in or custom).
  • created_at - The user's creation date.
  • updated_at - The user's last update date.
  • identity_data - The user's identity data.
  • last_sign_in_at - The user's last sign-in date.

Summary

Types

providers()

@type providers() :: atom() | String.t()

t()

@type t() :: %Supabase.Auth.User.Identity{
  created_at: NaiveDateTime.t(),
  id: Ecto.UUID.t(),
  identity_data: map(),
  last_sign_in_at: NaiveDateTime.t() | nil,
  provider: providers(),
  updated_at: NaiveDateTime.t(),
  user: term(),
  user_id: Ecto.UUID.t()
}

Functions

changeset(identifty \\ %__MODULE__{}, attrs)

parse(attrs)

parse_list(list_attrs)

providers()