firebase-auth-cloudflare-workers
Version:
Zero-dependencies firebase auth library for Cloudflare Workers.
15 lines (14 loc) • 565 B
TypeScript
export interface KeyStorer {
get<ExpectedValue = unknown>(): Promise<ExpectedValue | null>;
put(value: string, expirationTtl: number): Promise<void>;
}
/**
* Class to get or store fetched public keys from a client certificates URL.
*/
export declare class WorkersKVStore implements KeyStorer {
private readonly cacheKey;
private readonly cfKVNamespace;
constructor(cacheKey: string, cfKVNamespace: KVNamespace);
get<ExpectedValue = unknown>(): Promise<ExpectedValue | null>;
put(value: string, expirationTtl: number): Promise<void>;
}