Commit 27d1566
committed
fix: accept HTTP 201 status code in token exchange
Fixes #1502
Some OAuth servers (like Supabase) return 201 Created instead of 200 OK
for successful token exchanges. The OAuth 2.0 spec doesn't mandate a
specific success status code, so we should accept both 200 and 201.1 parent 1200ba0 commit 27d1566
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
429 | 429 | | |
430 | 430 | | |
431 | 431 | | |
432 | | - | |
| 432 | + | |
433 | 433 | | |
434 | 434 | | |
435 | 435 | | |
| |||
0 commit comments