How do we ensure a session is still valid on refresh with NextJS app folder?

Hi everyone and @bradleygriffith-cit

Thank you for posting your questions on the community!

I am sorry about the late reply to your post.

For the issue you are experiencing, I would advise to check the session of the user whenever they access the webpage and redirect them to the logout endpoint since your application does not seem to handle that.

I would recommend to review this community post, also How to redirect user to login when token is expire and this knowledge article regarding the matter.

If you have found a solution or have additional questions regarding the matter, feel free to leave a reply or post again on the community!

Kind Regards,
Nik