mirror of
https://github.com/teamhanko/hanko.git
synced 2026-03-13 08:43:15 +08:00
When multiple users trust the same device/browser, the device trust cookie was being overwritten, causing previous users to lose their trust status. This change introduces a composite cookie format that stores multiple user tokens in a single cookie: <user_id>:<token>|<user_id>:<token> Features: - New DeviceTrustMaxUsersPerDevice config option (default: 20) - Backward compatible with legacy single-token format - Automatic migration from legacy to new format - Most recent user entry is prioritized (added to front)