This commit is contained in:
Glen Maddern 2025-05-05 17:01:50 +10:00
commit 207fc8692e
2 changed files with 21 additions and 14 deletions

View file

@ -186,6 +186,7 @@ export class BrowserOAuthClientProvider implements OAuthClientProvider {
* @param options Configuration for the popup window.
* @returns An object indicating success, whether the popup was potentially blocked, and the URL used.
*/
// @ts-ignore
async redirectToAuthorization(
authorizationUrl: URL,
metadata: OAuthMetadata,

View file

@ -103,6 +103,7 @@ export async function onMcpAuthorization(
authorizationCode: code,
codeVerifier,
// redirectUrl is typically required by the token endpoint for verification
// @ts-ignore
redirectUrl: new URL('/oauth/callback', window.location.origin).toString(), // TODO: Make this configurable or get from provider instance?
});