fix(core): update
This commit is contained in:
@@ -1,16 +1,11 @@
|
||||
import * as plugins from './sdk.plugins';
|
||||
import { AuthInfo } from './sdk.classes.authinfo';
|
||||
|
||||
export abstract class AAgHandler {
|
||||
public authenticationHandler: any;
|
||||
|
||||
export abstract class AAgHandler<TClaim> {
|
||||
/**
|
||||
* a slug that separates the handler from other handlers
|
||||
*/
|
||||
public abstract slug: string;
|
||||
|
||||
public abstract handleRequest (request: plugins.tsclass.network.ISimpleRequest): Promise<plugins.tsclass.network.ISimpleResponse>;
|
||||
|
||||
public setAuthenticationHandler(authHandler) {
|
||||
this.authenticationHandler = authHandler;
|
||||
}
|
||||
public abstract handleRequest (authInfoArg: AuthInfo<TClaim>, request: plugins.tsclass.network.ISimpleRequest): Promise<plugins.tsclass.network.ISimpleResponse>;
|
||||
}
|
||||
Reference in New Issue
Block a user