How to keep persist login when token expired with auth0 in my next.js

Job ID: 32216966

Budget: $10 – $30 USD

I have done project using react-auth0 in my next.js application.
When token expired, it has been persistently logged in. not causing 401 error.
I want to ask solution about this.
Related categories: JavaScript OAuth Next.js