Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@exweiv/wix-secret-helpers

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@exweiv/wix-secret-helpers

Some basic helper functions for secrets in Wix, works with wix-secrets-backend.v2 APIs

Source
npmnpm
Version
2.0.0
Version published
Weekly downloads
73
21.67%
Maintainers
1
Weekly downloads
 
Created
Source

Secret Helpers for Wix Secrets Manager APIs

This library provides a convenient helper for securely retrieving secrets from Wix Secrets Manager, with built-in memory caching and optional JSON parsing.

Usage

Basic Example: Retrieve a Secret as a String

import { getSecretValue } from '@exweiv/wix-secret-helpers';

// Returns `string`
const weatherAPIKey = await getSecretValue("WeatherAPIKey"); 
const client = new WeatherClient(weatherAPIKey);

Advanced Example: Retrieve and Parse a JSON Secret

import { getSecretValue } from '@exweiv/wix-secret-helpers';

// Returns defined `object`
const twitterAPIConfig = /** @type {{appKey: string, appSecret: string, accessToken: string, accessSecret: string}} */ (await getSecretValue("TwitterJSON", true));
const client = new TwitterAPI(twitterAPIConfig);

Features:

  • Memory caching (enabled by default, but can be disabled)
  • Optional JSON parsing for secrets stored as JSON

Kolay Gelsin 💜

Keywords

wix

FAQs

Package last updated on 09 Sep 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts