The only way I can see to get an authorisation code to sent to my back-end is to call the 'grantOfflineAccess' method. Is there anyway to call this in redirect mode and/or have it be included with the initial sign in flow?