Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

authenticateMessage() giving "Stale timestamp" error. #86

Closed
mikeal opened this issue Jul 12, 2013 · 2 comments
Closed

authenticateMessage() giving "Stale timestamp" error. #86

mikeal opened this issue Jul 12, 2013 · 2 comments
Labels
feature New functionality or improvement

Comments

@mikeal
Copy link
Contributor

mikeal commented Jul 12, 2013

apparently this is only an issue with authenticateMessage() as the http client will adjust the clock for you. I need a similar way to do this with authenticateMessage.

@hueniverse
Copy link
Contributor

When establishing the connection, have the server send a timestamp message using hawk.crypto.timestampMessage(). Then in the browser call hawk.client.authenticateTimestamp() which will update the internal clock offset. Check that authenticateTimestamp() returns true (it will not update the clock if false).

Lemme know if this works for you and I'll publish 1.1.0.

@Marsup Marsup added feature New functionality or improvement and removed request labels Sep 21, 2019
@lock
Copy link

lock bot commented Jan 9, 2020

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature New functionality or improvement
Projects
None yet
Development

No branches or pull requests

3 participants