-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid or replayed nonce #14
Comments
Could you share your code, or if not, trim it down to the minimum code necessary to still give this error? |
Sure. Here are related parts. initialization:
authenticate:
verify part:
That's what I got for authentication part. |
I have this exact same issue running the example code found on the NPM steam-login page (With my own API key). However I have run the same code on my laptop and had no issue authenticating the same steam account using the same version of node. This is really strange. |
Got the same issue after login when it redirecting to /verify my implemented code as below initialization authenticate part
verify part
Can you please, guide me where am I wrong? |
Test to see if your Steam API key is working. Make a request in your web brower to The invalid or replayed nonce, at least here, seems to be happening because you are trying to authenticate with the same OpenID request twice. Not a problem with your code - that's just how OpenID works. To retry, you'd have to go through the whole flow. |
Hey, I am actually getting this issue when I get redirected back from steam verification page, to /verify. |
Did you solve this problem? |
No I have not figured out a fix, it seems that this one is quite dead with no support. |
I'm busy right now with work and school so I can't dedicate the time required to sort all this out right now. I don't know when I'll be able to fix this, so until then if you're looking for a Steam authentication library I'd recommend passport-steam. It's a little more complex than this library but it'll do the job. |
That's tottally understandable,This is an open source project, so it is totally understandable that it might not have as good support as a paid library :D |
passport-steam has the same issue |
I fixed this issue. I believe the problem stems from more than one package making calls to the same library. I believe this library is steam-web. The issue is that the nonce that one of the libraries is generating to assure steam a new login attempt is happening is malfunctioning and outputting the same nonce repeatedly. Nonce: "Number Just Once". My fix for this was removing any other node packages that use steam-web, this means if you have passport-steam and steam-login installed to the same project, you need to get rid of one of them. In this case, likely passport-steam. I don't know what the error exactly stems from, but it is coming from Steam's end. I hope this helps. |
It was working like a charm for days. Now, I get this
Invalid or replayed nonce
error for no reason. I mean, I didn't change any single thing in my project. But yet, it still happens. Couldn't find anything that what causes this.The text was updated successfully, but these errors were encountered: