bynk.actor.signed_cookie_bad_ttl
Error A SignedCookie ttl is not a positive whole number of seconds.
ttl must be a Duration literal that is positive and a whole number of seconds, because it becomes both a Max-Age and a signed expiry in seconds. Write 12.hours or 30.minutes.
Example
actor User { auth = SignedCookie(secret = "SESSION_KEY", ttl = 1500.milliseconds), identity = UserId } // ✗
actor User { auth = SignedCookie(secret = "SESSION_KEY", ttl = 12.hours), identity = UserId } // ✓In the Book
See also
- Every code in its category, Actors, on the diagnostic index.
bynk explain bynk.actor.signed_cookie_bad_ttlshows the same from the installed toolchain, without a network.