diff --git a/src/index.ts b/src/index.ts index 7c50304..135036b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -6,14 +6,14 @@ import { } from './middleware/index.js' import { Middleware } from './shared-types/middleware.type.js' import { HttpApi } from './lib/http-api.service.js' -import Auth from './lib/auth.service.js' +import { OzzzyAuth } from './lib/auth.service.js' import { AuthTypes } from './shared-types/auth-types.enum.js' import { RestMethods } from './shared-types/rest-methods.enum.js' import { logger as loggerUtil } from './utils/logger.js' export { HttpApi, - Auth, + OzzzyAuth, RestMethods, type Middleware, AuthTypes, diff --git a/src/lib/auth.service.ts b/src/lib/auth.service.ts index a49e5a4..614860f 100644 --- a/src/lib/auth.service.ts +++ b/src/lib/auth.service.ts @@ -1,7 +1,7 @@ import { AuthTypes } from '../shared-types/auth-types.enum.js' import { AuthProvider } from '../shared-types/auth.type.js' -class OzzzyAuth implements AuthProvider { +export class OzzzyAuth implements AuthProvider { type: AuthTypes token: string header: string @@ -21,5 +21,3 @@ class OzzzyAuth implements AuthProvider { } } } - -export default OzzzyAuth