You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MCP servers such as https://supabase.com/docs/guides/getting-started/mcp will return 201 on successful token exchange. The current logic breaks the flow even after the exchange has been successful on the resource side - something as simple as the following fixes throwing an unnecessary error here.
...
if response.status_code != 200 and response.status_code != 201:
raise OAuthTokenError(f"Token exchange failed: {response.status_code}")
....