canine Posted October 22, 2023 Report Share Posted October 22, 2023 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, 2023 Author Report Share Posted October 22, 2023 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, 2023 Author Report Share Posted October 22, 2023 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, 2023 Report Share Posted October 23, 2023 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, 2023 Author Report Share Posted November 11, 2023 (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, 2023 by canine Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted November 14, 2023 Report Share Posted November 14, 2023 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, 2023 Author Report Share Posted November 14, 2023 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...
canine Posted December 9, 2023 Author Report Share Posted December 9, 2023 (edited) A question, how long do these tokens last? Or how do I know if it's expired? @Dr. McKay Edited December 9, 2023 by canine Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted December 10, 2023 Report Share Posted December 10, 2023 They last somewhere around 200 days. It's a JWT; you can decode it and check the exp property to see when it expires. Quote Link to comment Share on other sites More sharing options...
canine Posted December 10, 2023 Author Report Share Posted December 10, 2023 Thanks a lot! 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.