@vitemcp/server 1.9.12 → 1.9.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -60,6 +60,11 @@ interface ClientCode {
60
60
  createdAt: Date;
61
61
  /** Code expiration timestamp */
62
62
  expiresAt: Date;
63
+ /**
64
+ * The redirect URI the code was authorized for. Absent from a code stored by
65
+ * a version that did not record it, which is redeemed without the check.
66
+ */
67
+ redirectUri?: string;
63
68
  transactionId: string;
64
69
  /** Upstream tokens obtained from provider */
65
70
  upstreamTokens: UpstreamTokenSet;
@@ -205,7 +210,13 @@ interface OAuthProviderConfig {
205
210
  * Configuration for the OAuth Proxy
206
211
  */
207
212
  interface OAuthProxyConfig {
208
- /** Access token TTL in seconds (default: 3600) */
213
+ /**
214
+ * Lifetime in seconds of a swapped access token whose upstream token
215
+ * response carries no `expires_in`. A positive one takes precedence, so this
216
+ * does not shorten tokens from a provider that sets it. Without either, the
217
+ * default is 3600 when the upstream issued a refresh token, and 31536000
218
+ * (one year) when it did not.
219
+ */
209
220
  accessTokenTtl?: number;
210
221
  /**
211
222
  * Allow-list of redirect URI patterns accepted by Dynamic Client Registration.
@@ -451,7 +462,8 @@ interface TokenRequest {
451
462
  code: string;
452
463
  code_verifier?: string;
453
464
  grant_type: "authorization_code";
454
- redirect_uri: string;
465
+ /** Optional: OAuth 2.1 drops it from the token request. */
466
+ redirect_uri?: string;
455
467
  }
456
468
  /**
457
469
  * OAuth token response
@@ -514,7 +526,7 @@ interface TokenVerifier {
514
526
  */
515
527
  interface UpstreamTokenSet {
516
528
  accessToken: string;
517
- /** Token expiration in seconds */
529
+ /** Token expiration in seconds; 0 when the upstream did not say */
518
530
  expiresIn: number;
519
531
  /** ID token (for OIDC) */
520
532
  idToken?: string;
@@ -607,6 +619,13 @@ declare class OAuthProxy {
607
619
  tokenEndpointAuthSigningAlgValuesSupported?: string[];
608
620
  uiLocalesSupported?: string[];
609
621
  };
622
+ /**
623
+ * The path the upstream provider redirects back to: `redirectPath`, or
624
+ * `/oauth/callback` when none is set. The router serves the callback here
625
+ * and the proxy sends `{baseUrl}{path}` upstream as the `redirect_uri`, so
626
+ * both read it from this one place and cannot disagree.
627
+ */
628
+ getRedirectPath(): string;
610
629
  /**
611
630
  * Handle OAuth callback from upstream provider
612
631
  */
@@ -60,6 +60,11 @@ interface ClientCode {
60
60
  createdAt: Date;
61
61
  /** Code expiration timestamp */
62
62
  expiresAt: Date;
63
+ /**
64
+ * The redirect URI the code was authorized for. Absent from a code stored by
65
+ * a version that did not record it, which is redeemed without the check.
66
+ */
67
+ redirectUri?: string;
63
68
  transactionId: string;
64
69
  /** Upstream tokens obtained from provider */
65
70
  upstreamTokens: UpstreamTokenSet;
@@ -205,7 +210,13 @@ interface OAuthProviderConfig {
205
210
  * Configuration for the OAuth Proxy
206
211
  */
207
212
  interface OAuthProxyConfig {
208
- /** Access token TTL in seconds (default: 3600) */
213
+ /**
214
+ * Lifetime in seconds of a swapped access token whose upstream token
215
+ * response carries no `expires_in`. A positive one takes precedence, so this
216
+ * does not shorten tokens from a provider that sets it. Without either, the
217
+ * default is 3600 when the upstream issued a refresh token, and 31536000
218
+ * (one year) when it did not.
219
+ */
209
220
  accessTokenTtl?: number;
210
221
  /**
211
222
  * Allow-list of redirect URI patterns accepted by Dynamic Client Registration.
@@ -451,7 +462,8 @@ interface TokenRequest {
451
462
  code: string;
452
463
  code_verifier?: string;
453
464
  grant_type: "authorization_code";
454
- redirect_uri: string;
465
+ /** Optional: OAuth 2.1 drops it from the token request. */
466
+ redirect_uri?: string;
455
467
  }
456
468
  /**
457
469
  * OAuth token response
@@ -514,7 +526,7 @@ interface TokenVerifier {
514
526
  */
515
527
  interface UpstreamTokenSet {
516
528
  accessToken: string;
517
- /** Token expiration in seconds */
529
+ /** Token expiration in seconds; 0 when the upstream did not say */
518
530
  expiresIn: number;
519
531
  /** ID token (for OIDC) */
520
532
  idToken?: string;
@@ -607,6 +619,13 @@ declare class OAuthProxy {
607
619
  tokenEndpointAuthSigningAlgValuesSupported?: string[];
608
620
  uiLocalesSupported?: string[];
609
621
  };
622
+ /**
623
+ * The path the upstream provider redirects back to: `redirectPath`, or
624
+ * `/oauth/callback` when none is set. The router serves the callback here
625
+ * and the proxy sends `{baseUrl}{path}` upstream as the `redirect_uri`, so
626
+ * both read it from this one place and cannot disagree.
627
+ */
628
+ getRedirectPath(): string;
610
629
  /**
611
630
  * Handle OAuth callback from upstream provider
612
631
  */
package/dist/ViteMCP.cjs CHANGED
@@ -10,7 +10,7 @@
10
10
 
11
11
 
12
12
 
13
- var _chunk7T5D57AMcjs = require('./chunk-7T5D57AM.cjs');
13
+ var _chunk7MAOWIMRcjs = require('./chunk-7MAOWIMR.cjs');
14
14
 
15
15
 
16
16
 
@@ -25,7 +25,7 @@ var _chunk7T5D57AMcjs = require('./chunk-7T5D57AM.cjs');
25
25
 
26
26
 
27
27
 
28
- var _chunk2X4JCSQQcjs = require('./chunk-2X4JCSQQ.cjs');
28
+ var _chunkT7EJGNI3cjs = require('./chunk-T7EJGNI3.cjs');
29
29
  require('./chunk-QPVEGWOL.cjs');
30
30
 
31
31
 
@@ -52,5 +52,5 @@ require('./chunk-QPVEGWOL.cjs');
52
52
 
53
53
 
54
54
 
55
- exports.AuthProvider = _chunk2X4JCSQQcjs.AuthProvider; exports.AzureProvider = _chunk2X4JCSQQcjs.AzureProvider; exports.DiscoveryDocumentCache = _chunk7T5D57AMcjs.DiscoveryDocumentCache; exports.GitHubProvider = _chunk2X4JCSQQcjs.GitHubProvider; exports.GoogleProvider = _chunk2X4JCSQQcjs.GoogleProvider; exports.MEDIA_FETCH_TIMEOUT_MS = _chunk7T5D57AMcjs.MEDIA_FETCH_TIMEOUT_MS; exports.OAuthProvider = _chunk2X4JCSQQcjs.OAuthProvider; exports.OAuthProxy = _chunk2X4JCSQQcjs.OAuthProxy; exports.OAuthProxyError = _chunk2X4JCSQQcjs.OAuthProxyError; exports.ServerState = _chunk7T5D57AMcjs.ServerState; exports.UnexpectedStateError = _chunk7T5D57AMcjs.UnexpectedStateError; exports.UserError = _chunk7T5D57AMcjs.UserError; exports.ViteMCP = _chunk7T5D57AMcjs.ViteMCP; exports.ViteMCPError = _chunk7T5D57AMcjs.ViteMCPError; exports.audioContent = _chunk7T5D57AMcjs.audioContent; exports.delay = _chunk7T5D57AMcjs.delay; exports.getAuthSession = _chunk2X4JCSQQcjs.getAuthSession; exports.imageContent = _chunk7T5D57AMcjs.imageContent; exports.jsonSchemaAdapter = _chunk7T5D57AMcjs.jsonSchemaAdapter; exports.requireAll = _chunk2X4JCSQQcjs.requireAll; exports.requireAny = _chunk2X4JCSQQcjs.requireAny; exports.requireAuth = _chunk2X4JCSQQcjs.requireAuth; exports.requireRole = _chunk2X4JCSQQcjs.requireRole; exports.requireScopes = _chunk2X4JCSQQcjs.requireScopes;
55
+ exports.AuthProvider = _chunkT7EJGNI3cjs.AuthProvider; exports.AzureProvider = _chunkT7EJGNI3cjs.AzureProvider; exports.DiscoveryDocumentCache = _chunk7MAOWIMRcjs.DiscoveryDocumentCache; exports.GitHubProvider = _chunkT7EJGNI3cjs.GitHubProvider; exports.GoogleProvider = _chunkT7EJGNI3cjs.GoogleProvider; exports.MEDIA_FETCH_TIMEOUT_MS = _chunk7MAOWIMRcjs.MEDIA_FETCH_TIMEOUT_MS; exports.OAuthProvider = _chunkT7EJGNI3cjs.OAuthProvider; exports.OAuthProxy = _chunkT7EJGNI3cjs.OAuthProxy; exports.OAuthProxyError = _chunkT7EJGNI3cjs.OAuthProxyError; exports.ServerState = _chunk7MAOWIMRcjs.ServerState; exports.UnexpectedStateError = _chunk7MAOWIMRcjs.UnexpectedStateError; exports.UserError = _chunk7MAOWIMRcjs.UserError; exports.ViteMCP = _chunk7MAOWIMRcjs.ViteMCP; exports.ViteMCPError = _chunk7MAOWIMRcjs.ViteMCPError; exports.audioContent = _chunk7MAOWIMRcjs.audioContent; exports.delay = _chunk7MAOWIMRcjs.delay; exports.getAuthSession = _chunkT7EJGNI3cjs.getAuthSession; exports.imageContent = _chunk7MAOWIMRcjs.imageContent; exports.jsonSchemaAdapter = _chunk7MAOWIMRcjs.jsonSchemaAdapter; exports.requireAll = _chunkT7EJGNI3cjs.requireAll; exports.requireAny = _chunkT7EJGNI3cjs.requireAny; exports.requireAuth = _chunkT7EJGNI3cjs.requireAuth; exports.requireRole = _chunkT7EJGNI3cjs.requireRole; exports.requireScopes = _chunkT7EJGNI3cjs.requireScopes;
56
56
  //# sourceMappingURL=ViteMCP.cjs.map
@@ -4,8 +4,8 @@ import { StandardSchemaV1 } from '@standard-schema/spec';
4
4
  import { Hono } from 'hono';
5
5
  import { cors } from 'hono/cors';
6
6
  export { setTimeout as delay } from 'timers/promises';
7
- import { A as AuthProvider, O as OAuthSession, a as OAuthProxy } from './OAuthProvider-B78zmLtB.cjs';
8
- export { j as AuthProviderConfig, b as AzureProvider, k as AzureProviderConfig, l as AzureSession, m as GenericOAuthProviderConfig, G as GitHubProvider, n as GitHubSession, c as GoogleProvider, o as GoogleSession, d as OAuthProvider, p as OAuthProxyError, g as getAuthSession, r as requireAll, e as requireAny, f as requireAuth, h as requireRole, i as requireScopes } from './OAuthProvider-B78zmLtB.cjs';
7
+ import { A as AuthProvider, O as OAuthSession, a as OAuthProxy } from './OAuthProvider-CXNATtVg.cjs';
8
+ export { j as AuthProviderConfig, b as AzureProvider, k as AzureProviderConfig, l as AzureSession, m as GenericOAuthProviderConfig, G as GitHubProvider, n as GitHubSession, c as GoogleProvider, o as GoogleSession, d as OAuthProvider, p as OAuthProxyError, g as getAuthSession, r as requireAll, e as requireAny, f as requireAuth, h as requireRole, i as requireScopes } from './OAuthProvider-CXNATtVg.cjs';
9
9
 
10
10
  declare class DiscoveryDocumentCache {
11
11
  #private;
package/dist/ViteMCP.d.ts CHANGED
@@ -4,8 +4,8 @@ import { StandardSchemaV1 } from '@standard-schema/spec';
4
4
  import { Hono } from 'hono';
5
5
  import { cors } from 'hono/cors';
6
6
  export { setTimeout as delay } from 'timers/promises';
7
- import { A as AuthProvider, O as OAuthSession, a as OAuthProxy } from './OAuthProvider-B78zmLtB.js';
8
- export { j as AuthProviderConfig, b as AzureProvider, k as AzureProviderConfig, l as AzureSession, m as GenericOAuthProviderConfig, G as GitHubProvider, n as GitHubSession, c as GoogleProvider, o as GoogleSession, d as OAuthProvider, p as OAuthProxyError, g as getAuthSession, r as requireAll, e as requireAny, f as requireAuth, h as requireRole, i as requireScopes } from './OAuthProvider-B78zmLtB.js';
7
+ import { A as AuthProvider, O as OAuthSession, a as OAuthProxy } from './OAuthProvider-CXNATtVg.js';
8
+ export { j as AuthProviderConfig, b as AzureProvider, k as AzureProviderConfig, l as AzureSession, m as GenericOAuthProviderConfig, G as GitHubProvider, n as GitHubSession, c as GoogleProvider, o as GoogleSession, d as OAuthProvider, p as OAuthProxyError, g as getAuthSession, r as requireAll, e as requireAny, f as requireAuth, h as requireRole, i as requireScopes } from './OAuthProvider-CXNATtVg.js';
9
9
 
10
10
  declare class DiscoveryDocumentCache {
11
11
  #private;
package/dist/ViteMCP.js CHANGED
@@ -10,7 +10,7 @@ import {
10
10
  delay,
11
11
  imageContent,
12
12
  jsonSchemaAdapter
13
- } from "./chunk-WBP37JPX.js";
13
+ } from "./chunk-2O5Y2H74.js";
14
14
  import {
15
15
  AuthProvider,
16
16
  AzureProvider,
@@ -25,7 +25,7 @@ import {
25
25
  requireAuth,
26
26
  requireRole,
27
27
  requireScopes
28
- } from "./chunk-NZ34AKP4.js";
28
+ } from "./chunk-F37DGG7F.js";
29
29
  import "./chunk-JMDI672G.js";
30
30
  export {
31
31
  AuthProvider,
@@ -24,7 +24,7 @@
24
24
 
25
25
 
26
26
 
27
- var _chunk2X4JCSQQcjs = require('../chunk-2X4JCSQQ.cjs');
27
+ var _chunkT7EJGNI3cjs = require('../chunk-T7EJGNI3.cjs');
28
28
 
29
29
 
30
30
 
@@ -51,5 +51,5 @@ var _chunk2X4JCSQQcjs = require('../chunk-2X4JCSQQ.cjs');
51
51
 
52
52
 
53
53
 
54
- exports.AuthProvider = _chunk2X4JCSQQcjs.AuthProvider; exports.AzureProvider = _chunk2X4JCSQQcjs.AzureProvider; exports.ConsentManager = _chunk2X4JCSQQcjs.ConsentManager; exports.DEFAULT_ACCESS_TOKEN_TTL = _chunk2X4JCSQQcjs.DEFAULT_ACCESS_TOKEN_TTL; exports.DEFAULT_ACCESS_TOKEN_TTL_NO_REFRESH = _chunk2X4JCSQQcjs.DEFAULT_ACCESS_TOKEN_TTL_NO_REFRESH; exports.DEFAULT_AUTHORIZATION_CODE_TTL = _chunk2X4JCSQQcjs.DEFAULT_AUTHORIZATION_CODE_TTL; exports.DEFAULT_REFRESH_TOKEN_TTL = _chunk2X4JCSQQcjs.DEFAULT_REFRESH_TOKEN_TTL; exports.DEFAULT_TRANSACTION_TTL = _chunk2X4JCSQQcjs.DEFAULT_TRANSACTION_TTL; exports.DiskStore = _chunk2X4JCSQQcjs.DiskStore; exports.EncryptedTokenStorage = _chunk2X4JCSQQcjs.EncryptedTokenStorage; exports.GitHubProvider = _chunk2X4JCSQQcjs.GitHubProvider; exports.GoogleProvider = _chunk2X4JCSQQcjs.GoogleProvider; exports.JWKSVerifier = _chunk2X4JCSQQcjs.JWKSVerifier; exports.JWTIssuer = _chunk2X4JCSQQcjs.JWTIssuer; exports.MemoryTokenStorage = _chunk2X4JCSQQcjs.MemoryTokenStorage; exports.OAuthProvider = _chunk2X4JCSQQcjs.OAuthProvider; exports.OAuthProxy = _chunk2X4JCSQQcjs.OAuthProxy; exports.OAuthProxyError = _chunk2X4JCSQQcjs.OAuthProxyError; exports.PKCEUtils = _chunk2X4JCSQQcjs.PKCEUtils; exports.getAuthSession = _chunk2X4JCSQQcjs.getAuthSession; exports.requireAll = _chunk2X4JCSQQcjs.requireAll; exports.requireAny = _chunk2X4JCSQQcjs.requireAny; exports.requireAuth = _chunk2X4JCSQQcjs.requireAuth; exports.requireRole = _chunk2X4JCSQQcjs.requireRole; exports.requireScopes = _chunk2X4JCSQQcjs.requireScopes;
54
+ exports.AuthProvider = _chunkT7EJGNI3cjs.AuthProvider; exports.AzureProvider = _chunkT7EJGNI3cjs.AzureProvider; exports.ConsentManager = _chunkT7EJGNI3cjs.ConsentManager; exports.DEFAULT_ACCESS_TOKEN_TTL = _chunkT7EJGNI3cjs.DEFAULT_ACCESS_TOKEN_TTL; exports.DEFAULT_ACCESS_TOKEN_TTL_NO_REFRESH = _chunkT7EJGNI3cjs.DEFAULT_ACCESS_TOKEN_TTL_NO_REFRESH; exports.DEFAULT_AUTHORIZATION_CODE_TTL = _chunkT7EJGNI3cjs.DEFAULT_AUTHORIZATION_CODE_TTL; exports.DEFAULT_REFRESH_TOKEN_TTL = _chunkT7EJGNI3cjs.DEFAULT_REFRESH_TOKEN_TTL; exports.DEFAULT_TRANSACTION_TTL = _chunkT7EJGNI3cjs.DEFAULT_TRANSACTION_TTL; exports.DiskStore = _chunkT7EJGNI3cjs.DiskStore; exports.EncryptedTokenStorage = _chunkT7EJGNI3cjs.EncryptedTokenStorage; exports.GitHubProvider = _chunkT7EJGNI3cjs.GitHubProvider; exports.GoogleProvider = _chunkT7EJGNI3cjs.GoogleProvider; exports.JWKSVerifier = _chunkT7EJGNI3cjs.JWKSVerifier; exports.JWTIssuer = _chunkT7EJGNI3cjs.JWTIssuer; exports.MemoryTokenStorage = _chunkT7EJGNI3cjs.MemoryTokenStorage; exports.OAuthProvider = _chunkT7EJGNI3cjs.OAuthProvider; exports.OAuthProxy = _chunkT7EJGNI3cjs.OAuthProxy; exports.OAuthProxyError = _chunkT7EJGNI3cjs.OAuthProxyError; exports.PKCEUtils = _chunkT7EJGNI3cjs.PKCEUtils; exports.getAuthSession = _chunkT7EJGNI3cjs.getAuthSession; exports.requireAll = _chunkT7EJGNI3cjs.requireAll; exports.requireAny = _chunkT7EJGNI3cjs.requireAny; exports.requireAuth = _chunkT7EJGNI3cjs.requireAuth; exports.requireRole = _chunkT7EJGNI3cjs.requireRole; exports.requireScopes = _chunkT7EJGNI3cjs.requireScopes;
55
55
  //# sourceMappingURL=index.cjs.map
@@ -1,5 +1,5 @@
1
- import { q as OAuthTransaction, C as ConsentData, T as TokenStorage, s as TokenVerifier, t as TokenVerificationResult, P as PKCEPair } from '../OAuthProvider-B78zmLtB.cjs';
2
- export { A as AuthProvider, j as AuthProviderConfig, z as AuthorizationParams, b as AzureProvider, k as AzureProviderConfig, l as AzureSession, B as ClientCode, u as ClientIdMetadataOptions, E as CustomClaimsPassthroughConfig, F as DCRClientMetadata, H as DCRRequest, I as DCRResponse, D as DEFAULT_ACCESS_TOKEN_TTL, v as DEFAULT_ACCESS_TOKEN_TTL_NO_REFRESH, w as DEFAULT_AUTHORIZATION_CODE_TTL, x as DEFAULT_REFRESH_TOKEN_TTL, y as DEFAULT_TRANSACTION_TTL, m as GenericOAuthProviderConfig, G as GitHubProvider, n as GitHubSession, c as GoogleProvider, o as GoogleSession, J as OAuthError, d as OAuthProvider, K as OAuthProviderConfig, a as OAuthProxy, L as OAuthProxyConfig, p as OAuthProxyError, O as OAuthSession, M as ProxyDCRClient, R as RefreshRequest, S as SessionAuth, N as TokenMapping, Q as TokenRequest, U as TokenResponse, V as UpstreamTokenSet, g as getAuthSession, r as requireAll, e as requireAny, f as requireAuth, h as requireRole, i as requireScopes } from '../OAuthProvider-B78zmLtB.cjs';
1
+ import { q as OAuthTransaction, C as ConsentData, T as TokenStorage, s as TokenVerifier, t as TokenVerificationResult, P as PKCEPair } from '../OAuthProvider-CXNATtVg.cjs';
2
+ export { A as AuthProvider, j as AuthProviderConfig, z as AuthorizationParams, b as AzureProvider, k as AzureProviderConfig, l as AzureSession, B as ClientCode, u as ClientIdMetadataOptions, E as CustomClaimsPassthroughConfig, F as DCRClientMetadata, H as DCRRequest, I as DCRResponse, D as DEFAULT_ACCESS_TOKEN_TTL, v as DEFAULT_ACCESS_TOKEN_TTL_NO_REFRESH, w as DEFAULT_AUTHORIZATION_CODE_TTL, x as DEFAULT_REFRESH_TOKEN_TTL, y as DEFAULT_TRANSACTION_TTL, m as GenericOAuthProviderConfig, G as GitHubProvider, n as GitHubSession, c as GoogleProvider, o as GoogleSession, J as OAuthError, d as OAuthProvider, K as OAuthProviderConfig, a as OAuthProxy, L as OAuthProxyConfig, p as OAuthProxyError, O as OAuthSession, M as ProxyDCRClient, R as RefreshRequest, S as SessionAuth, N as TokenMapping, Q as TokenRequest, U as TokenResponse, V as UpstreamTokenSet, g as getAuthSession, r as requireAll, e as requireAny, f as requireAuth, h as requireRole, i as requireScopes } from '../OAuthProvider-CXNATtVg.cjs';
3
3
 
4
4
  /**
5
5
  * Consent Management
@@ -1,5 +1,5 @@
1
- import { q as OAuthTransaction, C as ConsentData, T as TokenStorage, s as TokenVerifier, t as TokenVerificationResult, P as PKCEPair } from '../OAuthProvider-B78zmLtB.js';
2
- export { A as AuthProvider, j as AuthProviderConfig, z as AuthorizationParams, b as AzureProvider, k as AzureProviderConfig, l as AzureSession, B as ClientCode, u as ClientIdMetadataOptions, E as CustomClaimsPassthroughConfig, F as DCRClientMetadata, H as DCRRequest, I as DCRResponse, D as DEFAULT_ACCESS_TOKEN_TTL, v as DEFAULT_ACCESS_TOKEN_TTL_NO_REFRESH, w as DEFAULT_AUTHORIZATION_CODE_TTL, x as DEFAULT_REFRESH_TOKEN_TTL, y as DEFAULT_TRANSACTION_TTL, m as GenericOAuthProviderConfig, G as GitHubProvider, n as GitHubSession, c as GoogleProvider, o as GoogleSession, J as OAuthError, d as OAuthProvider, K as OAuthProviderConfig, a as OAuthProxy, L as OAuthProxyConfig, p as OAuthProxyError, O as OAuthSession, M as ProxyDCRClient, R as RefreshRequest, S as SessionAuth, N as TokenMapping, Q as TokenRequest, U as TokenResponse, V as UpstreamTokenSet, g as getAuthSession, r as requireAll, e as requireAny, f as requireAuth, h as requireRole, i as requireScopes } from '../OAuthProvider-B78zmLtB.js';
1
+ import { q as OAuthTransaction, C as ConsentData, T as TokenStorage, s as TokenVerifier, t as TokenVerificationResult, P as PKCEPair } from '../OAuthProvider-CXNATtVg.js';
2
+ export { A as AuthProvider, j as AuthProviderConfig, z as AuthorizationParams, b as AzureProvider, k as AzureProviderConfig, l as AzureSession, B as ClientCode, u as ClientIdMetadataOptions, E as CustomClaimsPassthroughConfig, F as DCRClientMetadata, H as DCRRequest, I as DCRResponse, D as DEFAULT_ACCESS_TOKEN_TTL, v as DEFAULT_ACCESS_TOKEN_TTL_NO_REFRESH, w as DEFAULT_AUTHORIZATION_CODE_TTL, x as DEFAULT_REFRESH_TOKEN_TTL, y as DEFAULT_TRANSACTION_TTL, m as GenericOAuthProviderConfig, G as GitHubProvider, n as GitHubSession, c as GoogleProvider, o as GoogleSession, J as OAuthError, d as OAuthProvider, K as OAuthProviderConfig, a as OAuthProxy, L as OAuthProxyConfig, p as OAuthProxyError, O as OAuthSession, M as ProxyDCRClient, R as RefreshRequest, S as SessionAuth, N as TokenMapping, Q as TokenRequest, U as TokenResponse, V as UpstreamTokenSet, g as getAuthSession, r as requireAll, e as requireAny, f as requireAuth, h as requireRole, i as requireScopes } from '../OAuthProvider-CXNATtVg.js';
3
3
 
4
4
  /**
5
5
  * Consent Management
@@ -24,7 +24,7 @@ import {
24
24
  requireAuth,
25
25
  requireRole,
26
26
  requireScopes
27
- } from "../chunk-NZ34AKP4.js";
27
+ } from "../chunk-F37DGG7F.js";
28
28
  export {
29
29
  AuthProvider,
30
30
  AzureProvider,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  withoutTrailingSlash
3
- } from "./chunk-NZ34AKP4.js";
3
+ } from "./chunk-F37DGG7F.js";
4
4
  import {
5
5
  formatBytes,
6
6
  ownKeysOnly,
@@ -244,7 +244,7 @@ var createOAuthRouter = (options) => {
244
244
  return c.json(body, status, noStore);
245
245
  }
246
246
  });
247
- app.get(`${basePath}/oauth/callback`, async (c) => {
247
+ app.get(`${basePath}${proxy.getRedirectPath()}`, async (c) => {
248
248
  try {
249
249
  return await proxy.handleCallback(c.req.raw);
250
250
  } catch (error) {
@@ -1688,4 +1688,4 @@ export {
1688
1688
  ServerState,
1689
1689
  ViteMCP
1690
1690
  };
1691
- //# sourceMappingURL=chunk-WBP37JPX.js.map
1691
+ //# sourceMappingURL=chunk-2O5Y2H74.js.map