AshVault.Macaroon.Clock (AshVault v0.2.0)

Copy Markdown View Source

The clock macaroon expiry is checked against.

DateTime.utc_now/0 unless config :ash_vault, :macaroon_clock, {m, f, a} names another — a test seam. The clock is deliberately not read from query or request context: plugs forward request context into Ash, and a caller-controlled clock would turn expiry off.

Summary

Functions

The current time.

Functions

now()

@spec now() :: DateTime.t()

The current time.