bynk.actor.signed_cookie_issue_needs_clock
Error Actor.issue(identity) on a SignedCookie actor is called where the handler does not list Clock in given.
User.issue(identity) signs a cookie that expires, so it reads the current time from the Clock capability, and a handler's dependencies are always visible in its given clause (and a test can stub the clock to know exactly the cookie it gets). Add consumes bynk { Clock } to the context and given Clock to the handler.
Example
let c <- User.issue(body) // ✗ the handler lists no `given Clock`
let c <- User.issue(body) // ✓ with `given Clock` on the handlerIn the Book
See also
- Every code in its category, Actors, on the diagnostic index.
bynk explain bynk.actor.signed_cookie_issue_needs_clockshows the same from the installed toolchain, without a network.