Problem with using Amity in NextJS project

I am using NextJS to build project with Amity ts-sdk.
The problem is when I refresh a page or move to a new page I got below error.
(I logged in at previous page).

Amity SDK using: @amityco/ts-sdk": "^6.5.0"
Is there any way to fix this problem without logging in again in new page.
Hope you reply soon.
Have a nice day!

@vinhpna Our SDK will loss session if the page is refresh. Therefore, you can solve by moving to new page without refresh or auto-login the session again when the page is refresh

Thank you,
Amity Support