Supabase.Auth.User.Identity (supabase_auth v1.1.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 provider's subject for this identity (e.g. a numeric string for Google or GitHub).
  • identity_id - The identity UUID as Supabase Auth stores it (the value unlink_identity/3 expects).
  • email - The identity email as emitted by the Auth server.
  • 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() | nil,
  email: String.t() | nil,
  id: String.t(),
  identity_data: map() | nil,
  identity_id: Ecto.UUID.t() | nil,
  last_sign_in_at: NaiveDateTime.t() | nil,
  provider: providers(),
  updated_at: NaiveDateTime.t() | nil,
  user: term(),
  user_id: Ecto.UUID.t() | nil
}

Functions

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

parse(attrs)

parse_list(list_attrs)

providers()