fgp-auth
Version:
fgp-auth is a token based auth lib and base on "auth0 and keycloak.
13 lines (12 loc) • 404 B
TypeScript
import { Auth } from "./auth";
import { AuthProps } from "./vo/fgp.auth.props";
export declare type AuthCallback = (token: string, operator: any) => any;
export declare class AuthFactory {
private auth;
constructor(type: string, props: AuthProps);
/**
* get auth object
*/
getAuth(): Auth;
}
export declare function createInstance(type: string, props: AuthProps): AuthFactory;