🚀 Socket Launch Week Day 4:Socket MCP Adds Org Alerts, Threat Feed Review, and Package Inspection.Learn more
Sign In

@holoscript/auth

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@holoscript/auth

Shared JWT authentication library for HoloScript APIs (GraphQL + Marketplace)

latest
staging
Source
npmnpm
Version
6.1.0
Version published
Maintainers
1
Created
Source

@holoscript/auth

Shared JWT authentication library for HoloScript APIs (GraphQL + Marketplace).

Overview

Provides JWT-based authentication middleware and utilities shared across HoloScript API services including the GraphQL API and Marketplace.

Usage

import { verifyToken, createToken, authMiddleware } from '@holoscript/auth';

// Create a JWT
const token = createToken({ userId: 'user-123', role: 'developer' });

// Verify a JWT
const payload = verifyToken(token);

// Express middleware
app.use('/api', authMiddleware());

Configuration

Set via environment variables:

SECURITY_JWT_SECRET=your-secret-key
SECURITY_JWT_EXPIRES_IN=24h
SECURITY_BCRYPT_ROUNDS=10
  • @holoscript/graphql-api — GraphQL API using this auth
  • @holoscript/marketplace-api — Marketplace API

License

MIT

Keywords

holoscript

FAQs

Package last updated on 30 May 2026

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