UNPKG

unleash-server

Version:

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

7 lines 714 B
import type { IUnleashConfig } from '../types/option.js'; import type { IUnleashServices } from '../services/index.js'; export declare const TOKEN_TYPE_ERROR_MESSAGE = "invalid token: expected a different token type for this endpoint"; export declare const NO_TOKEN_WHERE_TOKEN_WAS_REQUIRED = "This endpoint requires an API token. Please add an authorization header to your request with a valid token"; declare const apiAccessMiddleware: ({ getLogger, authentication, flagResolver, }: Pick<IUnleashConfig, "getLogger" | "authentication" | "flagResolver">, { apiTokenService }: Pick<IUnleashServices, "apiTokenService">) => any; export default apiAccessMiddleware; //# sourceMappingURL=api-token-middleware.d.ts.map