
Security News
Frontier AI Is Now Critical Infrastructure
The Fable shutdown shows how quickly model access can become a business continuity risk for AI-dependent engineering teams.
@robinpath/auth
Advanced tools
API authentication helpers: Basic, Bearer, API key, HMAC signing, and password hashing
The auth module lets you:
All functions are callable directly from RobinPath scripts with a simple, consistent API.
npm install @robinpath/auth
No credentials needed — start using it right away:
auth.parseBasic "Basic dXNlcjpwYXNz"
| Function | Description |
|---|---|
auth.basic | Create a Basic authentication header from username and password |
auth.parseBasic | Parse a Basic auth header to extract username and password |
auth.bearer | Create a Bearer authentication header from a token |
auth.parseBearer | Extract the token from a Bearer auth header |
auth.apiKey | Create an API key configuration for header or query parameter placement |
auth.hmacSign | Create an HMAC signature for a payload |
auth.hmacVerify | Verify an HMAC signature using timing-safe comparison |
auth.generateApiKey | Generate a cryptographically secure random API key |
auth.hashPassword | Hash a password using PBKDF2 with a random salt |
auth.verifyPassword | Verify a password against a PBKDF2 hash (timing-safe) |
auth.buildAuthHeader | Build an Authorization header from a type and credentials |
auth.parseAuthHeader | Parse any Authorization header into its scheme and credentials |
auth.parseBasic "Basic dXNlcjpwYXNz"
auth.bearer "eyJhbGciOi..."
auth.parseBearer "Bearer eyJhbGciOi..."
import { RobinPath } from "@wiredwp/robinpath";
import Module from "@robinpath/auth";
const rp = new RobinPath();
rp.registerModule(Module.name, Module.functions);
rp.registerModuleMeta(Module.name, Module.functionMetadata);
const result = await rp.executeScript(`
auth.parseBasic "Basic dXNlcjpwYXNz"
`);
See MODULE.md for complete documentation including all parameters, return types, error handling, and advanced examples.
@robinpath/json — JSON module for complementary functionalityMIT
FAQs
API authentication helpers (Basic, Bearer, API key, HMAC) for RobinPath
The npm package @robinpath/auth receives a total of 31 weekly downloads. As such, @robinpath/auth popularity was classified as not popular.
We found that @robinpath/auth demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?

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.

Security News
The Fable shutdown shows how quickly model access can become a business continuity risk for AI-dependent engineering teams.

Security News
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.