@apiquest/plugin-auth 1.0.1

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.

Potentially problematic release.


This version of @apiquest/plugin-auth might be problematic. Click here for more details.

@@ -0,0 +1,3 @@
1
+ import type { IAuthPlugin } from '@apiquest/types';
2
+ export declare const bearerAuth: IAuthPlugin;
3
+ //# sourceMappingURL=bearer-auth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bearer-auth.d.ts","sourceRoot":"","sources":["../src/bearer-auth.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAA4D,MAAM,iBAAiB,CAAC;AAE7G,eAAO,MAAM,UAAU,EAAE,WAkDxB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare function isNullOrEmpty(value: string | null | undefined): boolean;
2
+ export declare function isNullOrWhitespace(value: string | null | undefined): boolean;
3
+ //# sourceMappingURL=helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../src/helpers.ts"],"names":[],"mappings":"AACA,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAEvE;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAE5E"}
@@ -0,0 +1,10 @@
1
+ import type { IAuthPlugin } from '@apiquest/types';
2
+ export { bearerAuth } from './bearer-auth.js';
3
+ export { basicAuth } from './basic-auth.js';
4
+ export { apiKeyAuth } from './apikey-auth.js';
5
+ export { oauth2Auth, type OAuth2Config } from './oauth2-auth.js';
6
+ export { isNullOrEmpty, isNullOrWhitespace } from './helpers.js';
7
+ export declare const authPlugins: IAuthPlugin[];
8
+ export declare function getAuthPlugin(type: string): IAuthPlugin | undefined;
9
+ export default authPlugins;
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAGnD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,KAAK,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAGjE,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AASjE,eAAO,MAAM,WAAW,EAAE,WAAW,EAKpC,CAAC;AAEF,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS,CAEnE;AAGD,eAAe,WAAW,CAAC"}