
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
@webex/plugin-authorization-node
Advanced tools
This package provides authentication functionality for Node.js applications using the Webex SDK.
npm install --save @webex/plugin-authorization-node
This is a plugin for the Cisco Webex JS SDK. Please see our developer portal and the API docs for full details.
const Webex = require('webex');
const webex = Webex.init({
credentials: {
client_id: 'your-client-id',
client_secret: 'your-client-secret'
}
});
// Exchange authorization code for access token
webex.authorization.requestAuthorizationCodeGrant({
code: 'authorization-code'
}).then(() => {
console.log('Authentication successful');
});
// Use JWT for authentication
webex.authorization.requestAccessTokenFromJwt({
jwt: 'your-jwt-token'
}).then(() => {
console.log('JWT authentication successful');
});
// Create JWT token
webex.authorization.createJwt({
issuer: 'guest-issuer-id',
secretId: 'base64-encoded-secret',
displayName: 'Guest User',
expiresIn: '12h'
}).then(({jwt}) => {
console.log('JWT created:', jwt);
});
Exchanges an authorization code for an access token.
options.code - The authorization code received from the providerRequests access token using JWT.
options.jwt - JWT token for authenticationCreates a JWT token.
options.issuer - Guest issuer IDoptions.secretId - Base64 encoded secretoptions.displayName - Display name (optional)options.expiresIn - Token expiration timeLogs out the current user.
options.token - Token to invalidate (optional)Boolean indicating if authorization is in progress.
Alias for isAuthorizing.
This package is maintained by Cisco Webex for Developers.
Pull requests welcome. Please see CONTRIBUTING.md for more details.
© 2016-2025 Cisco and/or its affiliates. All Rights Reserved.
FAQs
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 Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.

Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.

Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.