Azure oAuth leading to 431 REQUEST_HEADER_FIELDS_TOO_LARGE in NextJS on Vercel #78
Open
1 of 2 tasks
Labels
bug
Something isn't working
Bug report
Describe the bug
I've been putting together an application which uses Azure oAuth for the past week or so. Everything has been running smoothly, but I recently began receiving 431 REQUEST_HEADER_FIELDS_TOO_LARGE errors. Removing some scopes was working for a while, but at this point, even minimal scopes hits this issue. Ideally I'm trying to request my dynamics environment + offline_access scope to get a refresh token.
I haven't 1000% been able to rule out user error here, but everything I can tell matches up with what's in the docs. I've seen some similar issues from others, mainly using Svelte, and those recommended using the chunk helped functions, but theres no documentation on those.
For reference, I'm using the following while signing in:
and the following middleware
It's quite odd that this seems to be getting worse over time. I had no issues for the past week+, began having issues in my production deployment but only with all scopes, and now can't access anything in the prod deployment or my local, even with minimal scopes.
Hoping this isn't basic user error, but If it is, I'm not seeing where!
Any help greatly appreciated!
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
Expected behavior
Supabase Azure oauth does not lead to 431 REQUEST_HEADER_FIELDS_TOO_LARGE.
Screenshots
System information
Additional context
Think that covers it!
The text was updated successfully, but these errors were encountered: