Context passed to AuthProvider.onUnauthorized when the server responds with 401. Provides everything needed to refresh credentials.
AuthProvider.onUnauthorized
Fetch function configured with the transport's requestInit, for making auth requests.
requestInit
The 401 response — inspect WWW-Authenticate for resource metadata, scope, etc.
WWW-Authenticate
The MCP server URL, for passing to auth or discovery helpers.
auth
Context passed to
AuthProvider.onUnauthorizedwhen the server responds with 401. Provides everything needed to refresh credentials.