If the user has been online for over an hour their token will expire. This will cause all network requests to start returning a 403 Unauthorized status code. Work with the unity & core repositories to catch this status code and if the status code is thrown, attempt to refresh the user's session automatically.
Could potentially be done by making the Api object remember the user's credentials when they login and whenever a 403 is caught anywhere other than the login endpoint try to log the user in, get a new session token, and try their request again.
If the user has been online for over an hour their token will expire. This will cause all network requests to start returning a
403 Unauthorizedstatus code. Work with the unity & core repositories to catch this status code and if the status code is thrown, attempt to refresh the user's session automatically.Could potentially be done by making the
Apiobject remember the user's credentials when they login and whenever a403is caught anywhere other than theloginendpoint try to log the user in, get a new session token, and try their request again.