The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: case insensitive comparison for non-json message (#44103)
Cemal Kılıçd9077528f8df
diff --git a/apps/studio/data/oauth-custom-providers/oauth-custom-providers-query.ts b/apps/studio/data/oauth-custom-providers/oauth-custom-providers-query.tsindex 833af50369d..dabea337f67 100644--- a/apps/studio/data/oauth-custom-providers/oauth-custom-providers-query.ts+++ b/apps/studio/data/oauth-custom-providers/oauth-custom-providers-query.ts@@ -30,7 +30,7 @@ export async function getOAuthCustomProviders({// Non-JSON responses from the API indicate custom providers aren't enabled.// Different browsers/SDK versions produce different JSON parse error messages,// so we check broadly for JSON parse indicators.- if (/JSON\.parse|Unexpected token|unexpected.*character/.test(newError.message)) {+ if (/JSON\.parse|Unexpected token|unexpected.*character/i.test(newError.message)) {newError = new AuthError('Custom providers are not enabled for this project')}handleError(newError)