npm-package/auth/test.js
2019-08-28 14:25:56 +08:00

12 lines
242 B
JavaScript

/**
* 作者:likeagle@163.com,
* 功能:
**/
"use strict";
const r = {"host": "101.200.241.0", "port": 6379, "password": "ehason"};
const a = require('./index')(r);
a.genToken({name: 'u', sex: 'm'}, 100).then( t =>{
console.log(t);
});