@cord-sdk/server
Advanced tools
Comparing version 0.0.39 to 0.0.40
@@ -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 |
@@ -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 |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5430
69