Next.js Discord

Discord Forum

Repeat call get session

Unanswered
Hairy Woodpecker posted this in #help-forum
Open in Discord
Hairy WoodpeckerOP
Hello, there is a problem that /api/auth/session is called twice in a row
 GET /api/auth/session 200 in 20ms
 GET /api/auth/session 200 in 14ms

. Which is why the refresh token is not working correctly for me. I searched the Internet, but did not find a solution.

Thank you!

2 Replies

Hairy WoodpeckerOP
Toyger
in provided code you don't have any fetches to url /api/auth/session