Skip to content

JarvisSemou/SignTool_JS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SignTool_JS

http interface authenticate tool for CTICloud

latest version: 1.0.0

install

yarn

    yarn add sign_tool_js

npm

    npm install sign_tool_js

usage

  1. import

        import { SignTool, SignType } from "sign_tool_js"
  2. generate CTICloud sign param

        let {timestamp, sign} = SignTool.genSignSync(SignType.Enterprise_Id_And_Token, {
            enterpriseId: "xxxxxxxxx",
            token: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
        })

    or

        let {timestamp, sign} = await SignTool.genSign(SignType.Enterprise_Id_And_Token, {
            enterpriseId: "xxxxxxxxx",
            token: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
        })

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published