nodejs jsonwebtoken verify方法報錯jwt not active
err = {
name: ‘NotBeforeError’,
message: ‘jwt not active’,
date: 2018-10-04T16:10:44.000Z
}
由於服務器時間差導致 jwt 報 jwt not active
解決:將jsonwebtoken verify的ignoreNotBefore 設置爲 true
const decoded = jwt.verify(token, wrong-secret, {ignoreNotBefore: true},callback);
參考:
https://github.com/auth0/node-jsonwebtoken
nodejs jsonwebtoken verify報錯 jwt not active
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章
VUEJS分頁_刷新當前頁
无情小寒
2020-07-02 17:11:34
VUEJS項目實踐九之彈框焦點默認在某個按鈕上
Yolanda_NuoNuo
2020-07-05 11:01:45
vue 父子組件傳函數 demo
秋水不寒
2020-07-07 08:54:01
axios 設置header
LYJSpeedX
2020-07-07 03:09:29
vue綁定key的案例(輸入框失焦問題)
Mount华
2020-07-07 01:57:53
vuejs需要知道的一些知識彙總
ali是个小太阳
2020-07-06 21:16:37
this dependency was not found
learning_H
2020-07-05 17:50:45
vue-element-admin執行npm install 報錯解決方法
Web魔法师
2020-07-03 18:08:48
Vue:登錄頁面及登錄頁面用到的驗證函數
登錄頁面: <template> <div id="login"> <div class="login-wrap"> <ul class="menu-tab"> <li v-for="item
Web魔法师
2020-07-03 18:08:48
vue.js 2.x教程
lmjun3
2020-07-03 12:50:50
vue.js入門基礎--慕課網筆記
lmjun3
2020-07-03 12:50:50
Nginx解決VUE的history模式下刷新404
原配置: location / { root /root/jxiaoshuai-blog-demo/; index index.html index.htm; } 使用try_files解決: lo
叶落森
2020-07-03 10:55:09