You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the go example there is a very high probability that it will fail validation. In the following line the signature is created using time.Now(). However, the header is set in line 42 using ts.Unix() and ts was created at the top of the function (also using time.Now()). The difference may be in the milliseconds range, but it could be enough to cause a validation failure. The correct way to do it would be to use the ts value when creating the signature.
In the go example there is a very high probability that it will fail validation. In the following line the signature is created using
time.Now()
. However, the header is set in line 42 usingts.Unix()
and ts was created at the top of the function (also using time.Now()). The difference may be in the milliseconds range, but it could be enough to cause a validation failure. The correct way to do it would be to use thets
value when creating the signature.standard-webhooks/libraries/go/example_webhook_test.go
Line 32 in 6b5ecd1
The text was updated successfully, but these errors were encountered: