Supabase.GoTrue.Session (supabase_gotrue v0.3.10)

This schema is used to validate and parse the parameters for a session.

Fields

  • provider_token - The provider token.
  • provider_refresh_token - The provider refresh token.
  • access_token - The access token.
  • refresh_token - The refresh token.
  • expires_in - The expiration time.
  • expires_at - The expiration date.
  • token_type - The token type.
  • user - The user. Check the Supabase.GoTrue.User schema for more information.

Summary

Types

@type t() :: %Supabase.GoTrue.Session{
  access_token: String.t(),
  expires_at: NaiveDateTime.t() | nil,
  expires_in: integer(),
  provider_refresh_token: String.t() | nil,
  provider_token: String.t() | nil,
  refresh_token: String.t(),
  token_type: String.t(),
  user: Supabase.GoTrue.User.t()
}

Functions

@spec parse(map()) :: {:ok, t()} | {:error, Ecto.Changeset.t()}