File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -161,8 +161,7 @@ This provider handles a two-step OAuth flow:
1611612 . Exchange the JAG for an access token from the MCP server via RFC 7523 JWT bearer grant
162162
163163``` ts
164- import { CrossAppAccessProvider } from ' @modelcontextprotocol/client' ;
165- import { discoverAndRequestJwtAuthGrant } from ' @modelcontextprotocol/client/crossAppAccess' ;
164+ import { CrossAppAccessProvider , discoverAndRequestJwtAuthGrant } from ' @modelcontextprotocol/client' ;
166165
167166const authProvider = new CrossAppAccessProvider ({
168167 // Callback to obtain JWT Authorization Grant
@@ -199,7 +198,7 @@ The `assertion` callback receives a context object with:
199198- ` scope ` – Optional scope passed to ` auth() ` or from ` clientMetadata `
200199- ` fetchFn ` – Fetch implementation to use for HTTP requests
201200
202- For manual control over the token exchange steps, use the Layer 2 utilities from ` @modelcontextprotocol/client/crossAppAccess ` :
201+ For manual control over the token exchange steps, use the Layer 2 utilities from ` @modelcontextprotocol/client ` :
203202- ` requestJwtAuthorizationGrant() ` – Exchange ID Token for JAG at IdP
204203- ` discoverAndRequestJwtAuthGrant() ` – Discovery + JAG acquisition
205204- ` exchangeJwtAuthGrant() ` – Exchange JAG for access token at MCP server
You can’t perform that action at this time.
0 commit comments