@kravc/dos 1.11.13 → 1.11.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.
- package/package.json +1 -1
- package/src/index.d.ts +7 -0
- package/src/index.js +1 -0
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -313,3 +313,10 @@ export declare class DocumentExistsError extends CommonError {
|
|
|
313
313
|
export declare class DocumentNotFoundError extends CommonError {
|
|
314
314
|
constructor(Document: { name: string }, parameters: Record<string, unknown>);
|
|
315
315
|
};
|
|
316
|
+
|
|
317
|
+
interface Identity {
|
|
318
|
+
sub: string;
|
|
319
|
+
email: string;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
export declare function authorize(Operation, Context): Promise<Identity>;
|
package/src/index.js
CHANGED
|
@@ -14,6 +14,7 @@ module.exports = {
|
|
|
14
14
|
Component: require('./Component'),
|
|
15
15
|
handler: require('./helpers/handler'),
|
|
16
16
|
getOrFail: require('./helpers/getOrFail'),
|
|
17
|
+
authorize: require('./helpers/authorize'),
|
|
17
18
|
security: require('./security'),
|
|
18
19
|
verifyToken: require('./security/verifyToken'),
|
|
19
20
|
JwtAuthorization: require('./security/JwtAuthorization'),
|