adk_live_credential_broker (erlang_adk v0.7.0)
View SourceOpaque, process-scoped storage for reconnectable Live credentials.
The secret is kept in a private ETS table rather than in the broker or session state returned by OTP system inspection. The returned reference is a capability: only code which already possesses it can resolve the secret. The table is destroyed when the session owner exits or explicitly revokes the reference.
Summary
Types
Functions
-spec resolve(credential_ref()) -> {ok, binary()} | {error, credential_unavailable}.
-spec revoke(credential_ref()) -> ok.
-spec start(pid(), binary()) -> {ok, credential_ref()} | {error, invalid_credential}.