@quatrain/auth 1.0.1 → 1.0.3
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.
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { AuthParameters, AuthParametersKeys } from './Auth';
|
|
2
|
-
import { User } from '@quatrain/
|
|
2
|
+
import { User } from '@quatrain/backend';
|
|
3
3
|
import { AuthInterface } from './types/AuthInterface';
|
|
4
4
|
export declare abstract class AbstractAuthAdapter implements AuthInterface {
|
|
5
|
+
static UserClass: typeof User;
|
|
5
6
|
protected _alias: string;
|
|
6
7
|
protected _params: AuthParameters;
|
|
7
8
|
constructor(params?: AuthParameters);
|
|
@@ -15,4 +16,6 @@ export declare abstract class AbstractAuthAdapter implements AuthInterface {
|
|
|
15
16
|
abstract update(user: User, updatable: any): Promise<any>;
|
|
16
17
|
abstract delete(user: User): Promise<any>;
|
|
17
18
|
abstract getAuthToken(token: string): any;
|
|
19
|
+
abstract revokeAuthToken(token: string): any;
|
|
20
|
+
abstract setCustomUserClaims(id: string, claims: any): any;
|
|
18
21
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AbstractAuthAdapter = void 0;
|
|
4
|
+
const backend_1 = require("@quatrain/backend");
|
|
4
5
|
class AbstractAuthAdapter {
|
|
5
6
|
constructor(params = {}) {
|
|
6
7
|
this._alias = '';
|
|
@@ -21,3 +22,4 @@ class AbstractAuthAdapter {
|
|
|
21
22
|
}
|
|
22
23
|
}
|
|
23
24
|
exports.AbstractAuthAdapter = AbstractAuthAdapter;
|
|
25
|
+
AbstractAuthAdapter.UserClass = backend_1.User;
|