Session token still valid after logout
Nandee logged out, then replayed the old token. The server answered as if nothing happened. Anyone who copied that token keeps the account.
09:41:02 POST /v2/logout 204 09:41:05 GET /v2/me Authorization: Bearer eyJhbGci… 09:41:05 200 {"email": "j***@acme.app"}
Three seconds after logout. Still in.
58 func logout() async throws { 59 try await api.revoke(session.refreshToken) 60 try Keychain.delete("refresh_token") 61 session = nil 62 }
Revoke on the server, then forget it here.