Security News
cURL Project and Go Security Teams Reject CVSS as Broken
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
@descope/web-js-sdk
Advanced tools
Descope JavaScript web SDK - Alpha
npm install @descope/web-js-sdk
import descopeSdk, { getSessionToken } from '@descope/web-js-sdk';
const myProjectId = 'xxx';
// Passing persistTokens as true will make `sdk.getSessionToken()` available, see bellow
const sdk = descopeSdk({ projectId: myProjectId, persistTokens: true });
sdk.onSessionTokenChange((newSession, oldSession) => {
// handle session token change...
});
sdk.onUserChange((newUser, oldUser) => {
// handle user change...
});
const userIdentifier = 'identifier';
sdk.otp.signIn.email(userIdentifier);
// Get session token
// can be used to pass token to server on header
const sessionToken = sdk.getSessionToken();
To run the example:
pnpm i
cd packages/web-js-sdk
pnpm run start
The browser open a tab with directory tree of available examples. Click on the desire directory and follow the instruction.
NOTE: This package is a part of a monorepo. so if you make changes in a dependency, you will have to rerun npm run start
(this is a temporary solution until we improve the process to fit to monorepo).
FAQs
Descope JavaScript web SDK
The npm package @descope/web-js-sdk receives a total of 28,371 weekly downloads. As such, @descope/web-js-sdk popularity was classified as popular.
We found that @descope/web-js-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.