Next redirects to /api/auth/signin on "Too Many Requests" response from api
Unanswered
Tonkinese posted this in #help-forum
TonkineseOP
Is this expected behavior?
3 Replies
Yakutian Laika
please, can you provide code and what are you using? and if you can explain more about what you're trying to do...
TonkineseOP
Yeah so basically i was playing around with putting a rate limiter on my api, which returns a "Too Many Requests" response when that limit is reached, and whenever that that happens, next automatically redirects the current page to "api/auth/signin" (the login page)
Basically i'm trying to figure out which part of the app is causing this, whether it's auth.js doing this, Apollo client, perhaps something else?