Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@cord-sdk/server

Package Overview
Dependencies
Maintainers
12
Versions
170
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cord-sdk/server - npm Package Compare versions

Comparing version 0.0.39 to 0.0.40

7

dist/cjs/index.js

@@ -39,5 +39,12 @@ 'use strict';

}
function getApplicationManagementAuthToken(customer_id, customer_secret) {
return jwt__namespace.sign({ customer_id }, customer_secret, {
algorithm: 'HS512',
expiresIn: '1 min',
});
}
exports.getApplicationManagementAuthToken = getApplicationManagementAuthToken;
exports.getClientAuthToken = getClientAuthToken;
exports.getServerAuthToken = getServerAuthToken;
//# sourceMappingURL=index.js.map

1

dist/mjs/index.d.ts

@@ -5,1 +5,2 @@ import type { ClientAuthTokenData } from '@cord-sdk/api-types';

export declare function getServerAuthToken(app_id: string, app_secret: string): string;
export declare function getApplicationManagementAuthToken(customer_id: string, customer_secret: string): string;

@@ -15,4 +15,10 @@ import * as jwt from 'jsonwebtoken';

}
function getApplicationManagementAuthToken(customer_id, customer_secret) {
return jwt.sign({ customer_id }, customer_secret, {
algorithm: 'HS512',
expiresIn: '1 min',
});
}
export { getClientAuthToken, getServerAuthToken };
export { getApplicationManagementAuthToken, getClientAuthToken, getServerAuthToken };
//# sourceMappingURL=index.js.map

4

package.json
{
"name": "@cord-sdk/server",
"description": "Server-side portion of the Cord SDK",
"version": "0.0.39",
"version": "0.0.40",
"homepage": "https://docs.cord.com/",

@@ -25,3 +25,3 @@ "license": "MIT",

"devDependencies": {
"@cord-sdk/api-types": "0.0.39",
"@cord-sdk/api-types": "0.0.40",
"@types/jsonwebtoken": "^8.5.8",

@@ -28,0 +28,0 @@ "rollup": "^2.70.1",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc