Update OAuth callback code
This commit is contained in:
parent
eb6af47b21
commit
e9a50adde7
1 changed files with 11 additions and 13 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import { OAuthClientInformation, OAuthClientInformationSchema, OAuthClientProvider, OAuthTokens, OAuthTokensSchema } from "@modelcontextprotocol/sdk/client/auth.js";
|
||||
import { SESSION_KEYS } from "./constants";
|
||||
|
||||
export class InspectorOAuthClientProvider implements OAuthClientProvider {
|
||||
class InspectorOAuthClientProvider implements OAuthClientProvider {
|
||||
get redirectUrl() {
|
||||
return window.location.origin + "/oauth/callback";
|
||||
}
|
||||
|
|
@ -69,3 +69,5 @@ export class InspectorOAuthClientProvider implements OAuthClientProvider {
|
|||
return verifier;
|
||||
}
|
||||
}
|
||||
|
||||
export const authProvider = new InspectorOAuthClientProvider();
|
||||
Loading…
Reference in a new issue