McpAuth

interface McpAuth(source)

Supplies bearer tokens to an McpClient.

Inheritors

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open suspend fun refresh(): Boolean

Called after a 401; return true when a new token is available and the request should be retried once.

Link copied to clipboard
abstract suspend fun token(): String?

The token to send, or null for none.