UNPKG

unleash-server

Version:

Unleash is an enterprise ready feature flag service. It provides different strategies for handling feature flags.

13 lines 772 B
import type { IApiToken, IEdgeTokenStore } from '../../types/index.js'; import type { EdgeClient } from '../../types/stores/edge-store.js'; export declare class FakeEdgeTokenStore implements IEdgeTokenStore { registerNonce(clientId: string, nonce: string, expiresAt: Date): Promise<void>; getToken(clientId: string, environment: string, projects: string[]): Promise<IApiToken | undefined>; loadClient(clientId: string): Promise<EdgeClient | undefined>; saveToken(clientId: string, token: IApiToken): Promise<void>; saveClient(clientId: string, secretEnc: Buffer): Promise<void>; cleanExpiredNonces(): Promise<void>; delete(tokenValue: string): Promise<void>; deleteAll(): Promise<void>; } //# sourceMappingURL=fake-edge-token-store.d.ts.map