Authenticating
Refreshing Tokens
Refresh Login Tokens
Epic Online Services authentication has to be refreshed every XX minutes (depending on which authentication method was used) to keep the logged in session active.
Login Node
- The login node handles automatic token refreshing when using an Epic Account or a DeviceId account
- For a Steam session ticket login, the plugin refreshes the login with the ticket you pass to Update Steam Session Ticket. Get a new ticket from Steam and call it before the login expires
- For other external accounts (for example Discord, OpenID or Google) the plugin can't get a new token. In C++, bind
OnConnectAuthExpiringand callRefreshConnectLoginWithToken, see Online Subsystem Login (C++). In Blueprint, use the sample below and log in again with EOS_Connect_Login and a new token
Listening for Expiration
- You can listen/wait for auth expiration and the EOS SDK will notify you when it's time to refresh login tokens, see the sample below
- Depending on your game you can add this to your Game Instance or any other persistent object (for example)
