You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been using jwt-simple for a while now, and it works flawlessly! Until when I need to add it to a WebSocket.
I'm getting the following error from jwt.decode(token, secret)
undefined:1
%d�ȝ������[�Ȏ���̍M��
^
SyntaxError: Unexpected token % in JSON at position 0
at JSON.parse (<anonymous>)
at Object.jwt_decode [as decode] (/mnt/c/Users/sledd/Desktop/stuff/Radwolf.LIVE/API/node_modules/jwt-simple/lib/jwt.js:75:21)
The token is correct, as it works with everything else. Is passport.authenticate required? if so, How would I go about adding it as a callback function rather than implementing it via app.<action>('/pth', passport.authenticate( ... ), ()=>{})?
The text was updated successfully, but these errors were encountered:
I've been using jwt-simple for a while now, and it works flawlessly! Until when I need to add it to a WebSocket.
I'm getting the following error from
jwt.decode(token, secret)
The token is correct, as it works with everything else. Is
passport.authenticate
required? if so, How would I go about adding it as a callback function rather than implementing it viaapp.<action>('/pth', passport.authenticate( ... ), ()=>{})
?The text was updated successfully, but these errors were encountered: