FastestMCP.Client.OAuth.TokenStore behaviour (fastest_mcp v0.2.0)

Copy Markdown View Source

Storage boundary for MCP OAuth token sets.

Implementations receive an opaque store reference supplied in the client oauth: configuration. Persistent implementations must encrypt credentials at rest and must not log values.

Summary

Types

key()

@type key() :: {String.t(), String.t(), String.t()}

token_set()

@type token_set() :: map()

Callbacks

delete(term, key)

@callback delete(term(), key()) :: :ok

get(term, key)

@callback get(term(), key()) :: token_set() | nil

put(term, key, token_set)

@callback put(term(), key(), token_set()) :: :ok