@mercury-labs/nest-auth
Version:
Mercury framework auth library. It supports local auth, jwt with both bearer token and cookie, basic auth.
17 lines (16 loc) • 646 B
TypeScript
import { IHashingOptions } from '../../hashing.module';
export declare class HashTextService {
private readonly _options;
private readonly _algorithm;
constructor(_options: IHashingOptions);
encode(textToEncode: string): string;
decode(hashedText: string): string | undefined;
encodeJSON(obj: any): string | undefined;
decodeJSON<T = any>(hashedObj: string): T | undefined;
}
export declare class NoHashTextService {
encode(textToEncode: string): string;
decode(hashedText: string): string | undefined;
encodeJSON(obj: any): string | undefined;
decodeJSON<T = any>(hashedObj: string): T | undefined;
}