Skip to content
Playground(another site)

bynk.actor.signed_cookie_missing_secret

Error A SignedCookie actor does not name its signing secret.

A SignedCookie actor signs the session cookies it issues and verifies the ones it receives, so it needs a key. secret names the environment variable holding it, never the key itself. bynk deploy mints a random 32-byte key for it when the variable is unset, so you never choose one.

Example

actor User { auth = SignedCookie(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_missing_secret shows the same from the installed toolchain, without a network.