Cuevven
Cuevven
https://jwt.io/ https://github.com/okoala/egg-jwt/blob/master/test/jwt.test.js https://juejin.im/post/5d819609e51d4561af16ddbe
> 请问 `ctx.compare` 是需要自己实现吗?这是哪个库继承来的方法呢?谢谢 `ctx.compare`是egg-bcrypt插件的方法,用来比较加密后的字符串。 https://github.com/yolopunk/egg-bcrypt https://github.com/dcodeIO/bcrypt.js
更新:只有 get 请求会遇到这个问题。还没找到原因和解决方法。 更新:前端只发送了一次 GET,后端响应两次。没明白第二次带 cookie 那个响应的请求是从哪发出的?? ```log koa-jwt:options>>>>>>>>>>>>>>>>>>> { secret: 'Great4-M', enable: false, ignore: '/api/user/access/login' } koa-jwt:request>>>>>>>>>>>>>>>>>>> { request: { method: 'GET', url: '/api/user?page=1&limit=20', header: { host: '127.0.0.1:7001', connection:...
``` javascript var colorThief = new ColorThief(); console.log(colorThief.getPalette(image).length); // 9 console.log(colorThief.getPalette(image, 1).length); // TypeError: o.palette is not a function console.log(colorThief.getPalette(image, 2).length); // 3 console.log(colorThief.getPalette(image, 3).length); // 4 console.log(colorThief.getPalette(image, 4).length); //...