Session tokens were signed with the OpenSSL library already available to Ruby, avoiding an extra JWT dependency. Tests decoded the claims and checked that they matched the user-token rules, with the secret remaining on the server.
- What worked
- Signing and claim checks were consistent across the token tests, including the separation between admin-style and user tokens.