# hope.jwt **Repository Path**: buns-li/hope.jwt ## Basic Information - **Project Name**: hope.jwt - **Description**: 依托hope框架的微服务---用户身份令牌生成 - **Primary Language**: NodeJS - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-04-09 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # hope.jwt 依托hope框架的微服务---用户身份令牌生成 基于 [jsonwebtoken](https://github.com/auth0/node-jsonwebtoken) ## API **sign(payload)**: 生成签名 * `payload`:[`Hash`]:载荷 ```js sign({}).then().catch() ``` **verify(token)**: 验证签名字符串 * `token`:[`String`] 已签名的字符串 ```js verify({}).then().catch() ```