
Company News
Socket Joins the OpenJS Foundation
Socket is proud to join the OpenJS Foundation as a Silver Member, deepening our commitment to the long-term health and security of the JavaScript ecosystem.
@descope/core-js-sdk
Advanced tools
Descope JavaScript core SDK
npm install @descope/core-js-sdk
import createSdk from '@descope/core-js-sdk';
const projectId = '<project-id>';
const sdk = createSdk({ projectId });
const loginId = 'loginId';
sdk.otp.signIn.email(loginId);
Connect to outbound applications (e.g., Google, Microsoft) to access user data from external services.
// Connect to an outbound application
const response = await sdk.outbound.connect('app-id', {
redirectUrl: 'https://your-app.com/callback',
scopes: ['email', 'profile'],
});
// Redirect user to the returned URL
window.location.href = response.data.url;
You can pass an external identifier to map the outbound connection to an external user:
const response = await sdk.outbound.connect('app-id', {
redirectUrl: 'https://your-app.com/callback',
scopes: ['email', 'profile'],
externalIdentifier: 'external-user-id-123',
});
For multi-tenant applications, you can specify tenant-level connections:
const response = await sdk.outbound.connect('app-id', {
redirectUrl: 'https://your-app.com/callback',
scopes: ['email', 'profile'],
externalIdentifier: 'external-user-id-123',
tenantId: 'tenant-123',
tenantLevel: true,
}, 'user-session-token');
FAQs
Descope JavaScript core SDK
The npm package @descope/core-js-sdk receives a total of 103,936 weekly downloads. As such, @descope/core-js-sdk popularity was classified as popular.
We found that @descope/core-js-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 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.

Company News
Socket is proud to join the OpenJS Foundation as a Silver Member, deepening our commitment to the long-term health and security of the JavaScript ecosystem.

Security News
npm now links to Socket's security analysis on every package page. Here's what you'll find when you click through.

Security News
A compromised npm publish token was used to push a malicious postinstall script in cline@2.3.0, affecting the popular AI coding agent CLI with 90k weekly downloads.