JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4101
  • Score
    100M100P100Q118434F
  • License Apache-2.0

Secret generation and environment file utilities for Guide

Package Exports

  • @forwardimpact/libsecret
  • @forwardimpact/libsecret/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@forwardimpact/libsecret) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

libsecret

Secret generation, JWT signing, and .env file management for services and CLIs.

Getting Started

import {
  generateSecret,
  generateUUID,
  generateJWT,
  mintSupabaseJwt,
  mintSupabaseAnonKey,
  mintSupabaseServiceRoleKey,
} from '@forwardimpact/libsecret';
  • mintSupabaseJwt({ email, secret, ttlSeconds }) — per-caller HS256 token signed against the Supabase JWT secret.
  • mintSupabaseAnonKey({ secret }) — long-lived role: anon token used by Supabase Auth's anon-keyed clients.
  • mintSupabaseServiceRoleKey({ secret }) — long-lived role: service_role token used for admin operations against Supabase.