first commit

This commit is contained in:
Your Name
2026-09-08 11:40:15 +08:00
commit a5353f7eb5
9568 changed files with 1646214 additions and 0 deletions
@@ -0,0 +1,30 @@
import LibGenerateTestUserSig from './lib-generate-test-usersig-es.min.js';
let SDKAPPID = 1600132918;
let SECRETKEY = 'd93e9195b247e42e1cd707e450b678a90115c93877df91b1f2649778ca442c37';
/**
* Expiration time for the signature, it is recommended not to set it too short.
* Time unit: seconds
* Default time: 7 x 24 x 60 x 60 = 604800 = 7 days
*/
const EXPIRETIME = 7 * 24 * 60 * 60;
function genTestUserSig({ userID, SDKAppID, SecretKey }) {
if (SDKAppID) SDKAPPID = SDKAppID;
if (SecretKey) SECRETKEY = SecretKey;
const generator = new LibGenerateTestUserSig(SDKAPPID, SECRETKEY, EXPIRETIME);
const userSig = generator.genTestUserSig(userID);
return {
SDKAppID: SDKAPPID,
userSig,
};
}
export {
genTestUserSig,
SDKAPPID,
SECRETKEY,
};
File diff suppressed because one or more lines are too long