@cord-sdk/server
Advanced tools
Comparing version 0.0.9 to 0.0.10
@@ -12,3 +12,3 @@ 'use strict'; | ||
function getClientAuthToken(app_id, app_secret, payload) { | ||
return jwt__default["default"].sign(Object.assign(Object.assign({}, payload), { app_id }), app_secret, { | ||
return jwt__default["default"].sign({ ...payload, app_id }, app_secret, { | ||
algorithm: 'HS512', | ||
@@ -15,0 +15,0 @@ expiresIn: '1 min', |
import jwt from 'jsonwebtoken'; | ||
function getClientAuthToken(app_id, app_secret, payload) { | ||
return jwt.sign(Object.assign(Object.assign({}, payload), { app_id }), app_secret, { | ||
return jwt.sign({ ...payload, app_id }, app_secret, { | ||
algorithm: 'HS512', | ||
@@ -6,0 +6,0 @@ expiresIn: '1 min', |
{ | ||
"name": "@cord-sdk/server", | ||
"description": "Server-side portion of the Cord SDK", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"homepage": "https://docs.cord.com/", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
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
4887