bynk.actor.scheme_arg_kind
Error A scheme config value other than SignedCookie's is a duration or a bare name, which only SignedCookie takes.
A scheme's config values are strings and integers, except that a SignedCookie also takes a duration (ttl = 12.hours) and a bare name (sameSite = Lax). Every other scheme reads a string or an integer, so a duration or a bare name would be dropped without a word: a Signature tolerance = 5.minutes would read as no tolerance at all, and the replay window would be off. Write a Signature tolerance in whole seconds, and quote a string.
Example
actor Hook { auth = Signature(secret = "K", header = "X-Sig", timestamp = "X-Ts", tolerance = 5.minutes) } // ✗ a duration
actor Hook { auth = Signature(secret = "K", header = "X-Sig", timestamp = "X-Ts", tolerance = 300) } // ✓ secondsIn the Book
See also
- Every code in its category, Actors, on the diagnostic index.
bynk explain bynk.actor.scheme_arg_kindshows the same from the installed toolchain, without a network.