UNPKG

lbx-jwt

Version:

Provides JWT authentication for loopback applications. Includes storing roles inside tokens and handling refreshing. Built-in reuse detection.

19 lines (18 loc) 621 B
/** * Encapsulates functionality of the bcryptjs package. */ export declare abstract class BcryptUtilities { /** * Asynchronously compares the given data against the given hash. * @param s - Data to compare. * @param hash - Data to be compared to. * @returns Promise, if callback has been omitted. */ static compare(s: string, hash: string): Promise<boolean>; /** * Asynchronously generates a hash for the given string. * @param value - The value that should be hashed. * @returns A hash of the given value. */ static hash(value: string): Promise<string>; }