Inttegro.Keys.GeneratedSecretKey (inttegro v0.2.0)

Copy Markdown View Source

Represents Generated Secret Key data in the Keys API.

Inttegro decodes API responses into this struct. Required fields are always present; optional fields are nil when they do not apply or were not returned. Follow the linked types in t/0 for nested domain values.

Creates, rotates, inspects, and destroys application secret keys.

A newly generated token is returned once. Store it immediately in a secret manager and never expose it to browser or mobile code. Lookup and usage operations return metadata, not the original token.

Summary

Types

t()

The decoded generated secret key value.

Functions

Builds a Inttegro.Keys.GeneratedSecretKey and raises KeyError when a required field is missing.

Types

t()

@type t() :: %Inttegro.Keys.GeneratedSecretKey{
  id: String.t(),
  issued_at: String.t(),
  label: String.t() | nil,
  token: String.t(),
  token_type: Inttegro.Keys.SecretKeyTokenType.t()
}

The decoded generated secret key value.

Functions

new!(attrs \\ %{})

@spec new!(map() | keyword()) :: t()

Builds a Inttegro.Keys.GeneratedSecretKey and raises KeyError when a required field is missing.