wildboar-context
Version:
Library for constructing context objects for pure functional programming.
11 lines • 921 B
TypeScript
import Plugin from "../Plugin";
import PluginKind from "../PluginKind";
import type WithAuthenticated from "../WithAuthenticated";
export default abstract class AuthenticationPlugin<LoginRequest extends Record<string, any> = Record<string, any>, LoginResponse extends WithAuthenticated = WithAuthenticated, LogoutRequest extends Record<string, any> = Record<string, any>, LogoutResponse extends WithAuthenticated = WithAuthenticated, CheckRequest extends Record<string, any> = Record<string, any>, CheckResponse extends WithAuthenticated = WithAuthenticated> extends Plugin {
readonly kind: PluginKind.AuthenticationPlugin;
abstract saslMechanism: string;
abstract login(args: LoginRequest): Promise<LoginResponse>;
abstract logout(args: LogoutRequest): Promise<LogoutResponse>;
abstract check(args: CheckRequest): Promise<CheckResponse>;
}
//# sourceMappingURL=AuthenticationPlugin.d.ts.map