UNPKG

@exweiv/wix-secret-helpers

Version:

Some basic helper functions for secrets in Wix, works with @wix/secrets SDK module.

24 lines (23 loc) 704 B
export interface GetSecretValueOptions { secretName: string; parseJSON?: boolean; cacheEnabled?: boolean; elevateAccess?: boolean; } export declare function getSecretValue<T = { [key: string]: any; }>(options: Omit<GetSecretValueOptions, 'parseJSON'> & { parseJSON: false; }): Promise<string>; export declare function getSecretValue<T = { [key: string]: any; }>(options: Omit<GetSecretValueOptions, 'parseJSON'> & { parseJSON: true; }): Promise<T>; export declare function getSecretValue<T = { [key: string]: any; }>(options: GetSecretValueOptions): Promise<string | T>; declare const _default: { getSecretValue: typeof getSecretValue; }; export default _default;