chore: switch to module ESNext + moduleResolution bundler (#2095)
This commit is contained in:
parent
c59dc3aa1a
commit
ee732d64b6
2 changed files with 668 additions and 863 deletions
|
|
@ -18,8 +18,8 @@ import cors from 'cors';
|
|||
import type { Request, Response as ExpressResponse, Router } from 'express';
|
||||
import express from 'express';
|
||||
|
||||
import type { DemoAuth } from './auth.js';
|
||||
import { createDemoAuth, DEMO_USER_CREDENTIALS } from './auth.js';
|
||||
import type { DemoAuth } from './auth';
|
||||
import { createDemoAuth, DEMO_USER_CREDENTIALS } from './auth';
|
||||
|
||||
export interface SetupAuthServerOptions {
|
||||
authServerUrl: URL;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
// Auth configuration
|
||||
export type { CreateDemoAuthOptions, DemoAuth } from './auth.js';
|
||||
export { createDemoAuth } from './auth.js';
|
||||
export type { CreateDemoAuthOptions, DemoAuth } from './auth';
|
||||
export { createDemoAuth } from './auth';
|
||||
|
||||
// Auth server setup + demo token verifier (pass to `requireBearerAuth` from @modelcontextprotocol/express)
|
||||
export type { SetupAuthServerOptions } from './authServer.js';
|
||||
export { createProtectedResourceMetadataRouter, demoTokenVerifier, getAuth, setupAuthServer } from './authServer.js';
|
||||
export type { SetupAuthServerOptions } from './authServer';
|
||||
export { createProtectedResourceMetadataRouter, demoTokenVerifier, getAuth, setupAuthServer } from './authServer';
|
||||
|
|
|
|||
Loading…
Reference in a new issue