Skip to content
Playground(another site)

bynk.actor.signed_cookie_duplicate_key

Error A SignedCookie config repeats a key.

A SignedCookie config names each key once. A repeated secret or ttl would have the first value win and the second ignored without a word, in the scheme that guards a session. Keep the one you mean.

Example

actor User { auth = SignedCookie(secret = "A", secret = "B", ttl = 12.hours), identity = UserId } // ✗ two secrets
actor User { auth = SignedCookie(secret = "A", 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_duplicate_key shows the same from the installed toolchain, without a network.