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-livedrole: anontoken used by Supabase Auth's anon-keyed clients.mintSupabaseServiceRoleKey({ secret })— long-livedrole: service_roletoken used for admin operations against Supabase.