Packages

Elixir SDK for the Appwrite backend-as-a-service platform. Covers Auth, Databases, TablesDB, Storage, Functions, Sites, Tokens, Teams, Messaging, GraphQL, and more.

Current section

Files

Jump to
appwrite lib types token.ex
Raw

lib/types/token.ex

defmodule Appwrite.Types.Token do
@moduledoc """
Represents a token in the Appwrite system.
## Fields
- `id` (`String.t`): Token ID.
- `created_at` (`String.t`): Creation date in ISO 8601 format.
- Other fields describe the secret, expiration, and security phrase.
"""
@type t :: %__MODULE__{
id: String.t(),
created_at: String.t(),
user_id: String.t(),
secret: String.t(),
expire: String.t(),
phrase: String.t()
}
defstruct [
:id,
:created_at,
:user_id,
:secret,
:expire,
:phrase
]
end