ZAF App not refreshing OKTA token | Community
Skip to main content

ZAF App not refreshing OKTA token

  • September 5, 2023
  • 3 replies
  • 0 views

Daniel57

I've implemented zaf proxy to authenticate my app with okta and it works however after token life time is expired zaf doesn't refresh immediately the token. it takes around 1 minute to refresh, in the meantime app is getting Jwt is expired and we get an error in the app, this is causing app intermittency. The token should be refreshed immediately, any thoughts? I've already set scope as: "openid offline_access". 

 

this is my manifest file:

   

 

 

3 replies

  • October 3, 2023
Hi Daniel, 
 
 

Daniel57
  • Author
  • October 3, 2023

Hi Erica, could you please help me? 

 

I still have the same problem, we have tried some options to discard application cache, however the problem is still there. the only thing we can not verify is the ZAF zendesk proxy, or how to configure to don't allow cache request and refresh token immediately. we have added this options in client.request:

 

 
and 
 
const defaultOptions = {
watchQuery: {
fetchPolicy:'no-cache',
errorPolicy:'all',
},
query: {
fetchPolicy:'no-cache',
errorPolicy:'all',
},
mutate: {
fetchPolicy:'no-cache',
errorPolicy:'all',
},
};

Daniel57
  • Author
  • October 3, 2023