I am looking to extend the expiry time of an access token by refreshing the token in the background. The expiry time is currently set to 30 minutes (server side) and this value is not to be changed, the idea is that every 29 minutes I will call a method that refreshes the access token to keep it alive for a further 1 and a half hours (meaning the access token stays alive for almost 2 hours). I have read that background tasks should take up to 5 second to complete then if more time is required to use UIKit, although this will only allow a further few minutes to complete the tasks needed.
Are there any special circumstances that will allow me to do this in background, or is there a better way to do this? Thank you for any help!