Skip to content
Playground(another site)

bynk.actor.signed_cookie_bad_arg

Error A SignedCookie config value has the wrong kind.

Each SignedCookie key takes one kind of value: secret, previous and cookie are strings, ttl is a duration, and sameSite is Lax, Strict or Unrestricted. Fix the value or remove the key.

Example

actor User { auth = SignedCookie(secret = 5, ttl = 12.hours), 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_arg shows the same from the installed toolchain, without a network.