@midware/mauth
Version:
A simple auth middleware for Node.js
11 lines • 467 B
TypeScript
import Identification from './util/identification';
import ICrypt from './iCrypt';
export default class JsonWebToken {
protected static _instance: JsonWebToken;
private crypt?;
protected constructor(crypt?: ICrypt);
static getInstance(crypt?: ICrypt): JsonWebToken;
verify(token?: string, key?: string): Promise<Identification>;
sign(payload: unknown, type?: string, key?: string): Promise<string>;
}
//# sourceMappingURL=jsonWebToken.d.ts.map