UNPKG

@cocalc/database

Version:

CoCalc: code for working with our PostgreSQL database

14 lines (13 loc) 481 B
declare class PassportCache { private name; private cachedMS; private pool; constructor(name: string, cachedMS: number); private getKey; saveAsync(key: string, value: string): Promise<void>; getAsync(key: string): Promise<string | null>; removeAsync(key: string): Promise<void>; } export declare function getPassportCache(name: string, cachedMS: number): PassportCache; export declare function getOauthCache(name: string): PassportCache; export {};