Lockspire.Storage.Ecto.Repository (lockspire v1.6.1)

Copy Markdown

Default Ecto-backed implementation for Lockspire's domain storage contracts.

Summary

Functions

list_device_authorizations(opts \\ [])

prune_expired_records(schema, now \\ DateTime.utc_now(), count \\ 0)

@spec prune_expired_records(module(), DateTime.t(), non_neg_integer()) ::
  non_neg_integer()

Deletes expired records in chunks of 1000 to prevent table locking.

rotate_refresh_token(token_hash, client_id, rotated_at, refresh_token, access_token)

validate_fapi_signing_readiness()

@spec validate_fapi_signing_readiness() ::
  :ok
  | {:error,
     :missing_compliant_active_key | :missing_compliant_publishable_key | term()}

validate_message_signing_readiness()

@spec validate_message_signing_readiness() ::
  :ok
  | {:error,
     :missing_compliant_active_key | :missing_compliant_publishable_key | term()}