My react SPA application refreshes for every one hour to implicit/callback

I’m using okta-auth-js and okta-react in my react application and i see my application refreshes for every one hour(It goes to implicit/callback and opens previous url)

I get this error " The client specified not to prompt, but the user is not logged in" and then it navigates to /implicit/callback

How can i avoid this? Is their anything i have to configure from okta ?
what is causing this issue?

grant type used - implicit

Versions used
okta-auth-js - 5.2.3
okta-react - 6.1.0
react - 16.14.0