@cord-sdk/server
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -22,1 +22,2 @@ export declare type PlatformUserVariables = { | ||
export declare function getClientAuthToken(app_id: string, app_secret: string, payload: Omit<ClientAuthTokenData, 'app_id'>): string; | ||
export declare function getServerAuthToken(app_id: string, app_secret: string): string; |
@@ -43,4 +43,11 @@ 'use strict'; | ||
} | ||
function getServerAuthToken(app_id, app_secret) { | ||
return jwt__default["default"].sign({ app_id: app_id }, app_secret, { | ||
algorithm: 'HS512', | ||
expiresIn: '1 min', | ||
}); | ||
} | ||
exports.getClientAuthToken = getClientAuthToken; | ||
exports.getServerAuthToken = getServerAuthToken; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@cord-sdk/server", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"homepage": "https://docs.cord.com/", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
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
8391
101