Event trigger inside Outlook Addin when Outlook logout or close
We are using SSO for our ADDIN in outlook using OfficeRuntime JS. We created our own token using below steps.
step 1-> Read the Token from
OfficeRuntime.auth.getAccessToken({
allowSignInPrompt: true,
})
step 2-> Passing the received token to our backend systems to get the new token from graph API's
step 3-> using the new token to validate the API( Application Backend API's) and renew it when it expire ( using refresh_token mechanism)
Problem is: When Outlook Close / Addin Close / Outlook Signout our new token ( generated by step 2) is active. So, looking for solution when Outlook Close / Addin Close / Outlook Signout any event trigger is available to logout from SSO as well.