v0.7.0
Minor Changes
-
#208
c59c37bThanks @mattzcarey! - Experimentally support MCP Enterprise-Managed Authorization ID-JAG assertions through the JWT bearer grant. -
#206
13ff269Thanks @itsandy-canva! - ExposegrantIdtotokenExchangeCallbackviaTokenExchangeCallbackOptions.Implementations of
tokenExchangeCallbackalready receiveduserIdand
clientId, but had no way to identify which specific grant the library was
operating on. This made it impossible to surgically revoke a single grant from
the callback (e.g. on a terminal upstream refresh failure) — implementations had
to either sweep all grants for a(userId, clientId)pair (racy under
concurrent refreshes) or maintain their own out-of-band mapping.grantIdis now provided alongsideuserIdso callbacks can pass them
directly toOAuthHelpers.revokeGrant. Populated for all three grant types
(authorization_code,refresh_token,token_exchange). Stable across
refreshes for the lifetime of the grant.