New POST /sessions/relay: bearer session token, body {audience}. Returns a token with iss (ENCLAVE_TOKEN_ISSUER, default https://accounts.flamenet.io), aud [audience], fresh jti, same sub and clearance, no device list, exp min(session, now+300s).
EnclaveToken gains optional iss/aud/jti. verify() refuses any token with aud, so a relay cannot replay its token here or at the file server.
Session tokens unchanged: shipped iOS and Android builds send the session token straight to /messenger/session, and stay working with relay strict off.
Tests: 5 new in RelayTokenTests; 55 of 55 pass in swift:6.2-jammy.
Strict on flamenet-relay stays off until the apps call /sessions/relay.
Todo 370, finding fmw3rdjbar.
- New POST /sessions/relay: bearer session token, body {audience}. Returns a token with iss (ENCLAVE_TOKEN_ISSUER, default https://accounts.flamenet.io), aud [audience], fresh jti, same sub and clearance, no device list, exp min(session, now+300s).
- EnclaveToken gains optional iss/aud/jti. verify() refuses any token with aud, so a relay cannot replay its token here or at the file server.
- Session tokens unchanged: shipped iOS and Android builds send the session token straight to /messenger/session, and stay working with relay strict off.
- Tests: 5 new in RelayTokenTests; 55 of 55 pass in swift:6.2-jammy.
Strict on flamenet-relay stays off until the apps call /sessions/relay.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
POST /sessions/relay trades a session token for a 5 minute token naming
one relay. Session tokens are unchanged, so shipped apps keep working.
A token with aud is refused as a session here and at the file server.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Todo 370, finding fmw3rdjbar.
Strict on flamenet-relay stays off until the apps call /sessions/relay.
🤖 Generated with Claude Code