adk_auth_provider behaviour (erlang_adk v0.7.0)
View SourceBehaviour implemented by authentication token providers.
Provider implementations receive credentials only inside a short-lived, supervised refresh worker. Implementations must not log credentials, token responses, or provider errors before redaction.
Summary
Types
Callbacks
-callback refresh(Credential :: credential(), Context :: context()) -> {ok, token()} | {error, error_reason()}.