View Source Appwrite.Types.Token (appwrite v0.2.1)

Represents a verification or magic-link token in Appwrite.

Tokens are short-lived, single-use values generated during email verification, phone verification, and passwordless (magic URL / OTP) authentication flows.

Fields

  • id (String.t()): Token ID.
  • created_at (String.t()): Token creation date in ISO 8601 format.
  • user_id (String.t()): ID of the user this token belongs to.
  • secret (String.t()): Token secret value used to complete the verification or sign-in flow.
  • expire (String.t()): Token expiration date in ISO 8601 format.
  • phrase (String.t()): Security phrase shown to the user to confirm they initiated the request.

Summary

Types

t()

@type t() :: %Appwrite.Types.Token{
  created_at: String.t(),
  expire: String.t(),
  id: String.t(),
  phrase: String.t(),
  secret: String.t(),
  user_id: String.t()
}