In next.js, `http://localhost:3000/api/friends` my...
# support-questions-legacy
u
In next.js,
http://localhost:3000/api/friends
my endpoint (if I stay on that page for a long time) shows me
"refresh token" 401
Is it an expected bahaviour, or am I doing smth wrong? If I go back to frontend and then return back to the API endpoint - it works (refreshes), should this be the correct flow? Or should I refresh tokens on the backend manually?