canine Posted October 22 Report Share Posted October 22 node_modules/steam-user/components/helpers.js:247 let parts = jwt.split('.'); ^ TypeError: jwt.split is not a function Quote Link to comment Share on other sites More sharing options...
canine Posted October 22 Author Report Share Posted October 22 Error: Invalid JWT if i force it to be a string Quote Link to comment Share on other sites More sharing options...
canine Posted October 22 Author Report Share Posted October 22 Context: I'm trying to use refreshtoken, exactly as in the migration guide. Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted October 23 Report Share Posted October 23 Sounds like whatever you've got isn't a valid refresh token. Where did you get it? Quote Link to comment Share on other sites More sharing options...
canine Posted November 11 Author Report Share Posted November 11 (edited) Yeah that is the issue, thanks. Where and how do I get it? I'm getting it via client.on('refreshToken', (token) => {} As in the v4 => v5 migration guide Edited November 11 by canine Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted November 14 Report Share Posted November 14 This should work. What is the value of token that you're actually receiving? Quote Link to comment Share on other sites More sharing options...
canine Posted November 14 Author Report Share Posted November 14 Thanks for responding, now it works, it was a problem with storing the token, not getting it. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.