bynk.actor.signed_cookie_secret_shared
Error A SignedCookie actor's secret or previous is also used by another actor, or by itself.
A session key signs one actor's cookies and nothing else. If two actors shared a variable, a cookie issued for one would verify for the other, and a Bearer token could be replayed as a cookie. Give each actor its own variable; previous is the key being rotated out, so it differs from secret too.
Example
actor User { auth = SignedCookie(secret = "SESSION_KEY", ttl = 12.hours), identity = UserId }actor Admin { auth = SignedCookie(secret = "SESSION_KEY", ttl = 1.hour), identity = UserId } // ✗ same key
actor Admin { auth = SignedCookie(secret = "ADMIN_SESSION_KEY", ttl = 1.hour), identity = UserId } // ✓In the Book
See also
- Every code in its category, Actors, on the diagnostic index.
bynk explain bynk.actor.signed_cookie_secret_sharedshows the same from the installed toolchain, without a network.