wip
This commit is contained in:
parent
c990df469f
commit
207fc8692e
2 changed files with 21 additions and 14 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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?
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue