Skip to content

Eosu 404 auth token reauth p2p disconnects v3#1279

Open
JessTello wants to merge 3 commits intorelease-6.1.0from
eosu-404-auth-token-reauth-p2p-disconnects-v3
Open

Eosu 404 auth token reauth p2p disconnects v3#1279
JessTello wants to merge 3 commits intorelease-6.1.0from
eosu-404-auth-token-reauth-p2p-disconnects-v3

Conversation

@JessTello
Copy link
Copy Markdown
Contributor

Fix auth token re-auth and add P2P connection state callbacks

  • Fix Connect re-authentication using a stale JWT when the EOS Connect token expires mid-session. The expiration callback was reusing the JWT string captured at login time, which is also expired by the time the callback fires. Now fetches a fresh JWT via CopyIdToken for EpicIdToken credentials.

  • Add AddNotifyPeerConnectionEstablished and AddNotifyPeerConnectionInterrupted callbacks to EOSTransportManager and EOSPeer2PeerManager. Both managers were missing the interrupted callback entirely, and EOSPeer2PeerManager was discarding the established callback handle (preventing cleanup on logout). Connection logs now include network type (direct vs relay) to aid diagnosis of P2P connectivity issues between specific player pairs.

Detect EpicIdToken credential type in the expiration callback and call StartConnectLoginWithEpicAccount instead, which fetches a fresh JWT via CopyIdToken from the already-renewed Auth interface token.
…ortManager

Add Subscribe/Unsubscribe methods for AddNotifyPeerConnectionEstablished and AddNotifyPeerConnectionInterrupted notifications following the existing pattern. Register them in Initialize() and clean them up in Shutdown(). Handlers log connection type (new vs reconnect), network type (direct vs relay), and socket name on establishment, and warn on interruption so interrupted sessions can be distinguished from full connection closures.
- Save AddNotifyPeerConnectionInterrupted and AddNotifyPeerConnectionEstablished notifications handles and clean them up in OnLoggedOut.
- Register AddNotifyPeerConnectionInterrupted in Initialize alongside the existing established listener. Add type and network info to the OnPeerConnectionEstablished log so direct vs relay connections are visible without digging into EOS SDK logs.
@JessTello JessTello requested a review from a team April 23, 2026 21:47
@JessTello JessTello changed the base branch from stable to release-6.1.0 April 23, 2026 21:48
@JessTello JessTello requested a review from matt-clarke April 23, 2026 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant