canine Posted October 22, 2023 Report Posted October 22, 2023 node_modules/steam-user/components/helpers.js:247 let parts = jwt.split('.'); ^ TypeError: jwt.split is not a function Quote
canine Posted October 22, 2023 Author Report Posted October 22, 2023 Error: Invalid JWT if i force it to be a string Quote
canine Posted October 22, 2023 Author Report Posted October 22, 2023 Context: I'm trying to use refreshtoken, exactly as in the migration guide. Quote
Dr. McKay Posted October 23, 2023 Report Posted October 23, 2023 Sounds like whatever you've got isn't a valid refresh token. Where did you get it? Quote
canine Posted November 11, 2023 Author Report 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
Dr. McKay Posted November 14, 2023 Report Posted November 14, 2023 This should work. What is the value of token that you're actually receiving? Quote
canine Posted November 14, 2023 Author Report Posted November 14, 2023 Thanks for responding, now it works, it was a problem with storing the token, not getting it. Quote
canine Posted December 9, 2023 Author Report 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
Dr. McKay Posted December 10, 2023 Report 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
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.