
Security News
Deno 2.4 Brings Back deno bundle, Improves Dependency Management and Observability
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
replit-identity
Advanced tools
A simple package to interact with the Replit CLI's identity command.
Supports TypeScript
Create and verify Replit Identity tokens.
const { create, verify } = require('replit-identity');
const audience = 'target-repl-id';
const token = await create(audience);
const info = await verify(token, audience);
console.log(info);
npm install replit-identity
Important: This package can only be used within a Replit environment.
The replit-identity
module exports the following functions:
create
Creates a new identity token.
audience
(string): The target audience for the token.verify
Verifies an existing identity token.
token
(string): The token to verify.audience
(string): The audience to verify against.Example return value:
const info = {
slug: "repl-name",
replId: "unique-repl-id",
audience: "target-repl-id",
username: "jane_doe" ,
userId: 12345,
runtime: {
// Based on Replit environment:
interactive: {
cluster: 'example-cluster',
subcluster: 'example-subcluster'
},
// Or:
hosting: {
cluster: 'example-cluster',
subcluster: 'example-subcluster'
},
// Or (if in deployment):
deployment: true,
}
}
FAQs
A simple package to interact with the Replit CLI's identity command.
The npm package replit-identity receives a total of 20 weekly downloads. As such, replit-identity popularity was classified as not popular.
We found that replit-identity demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.