The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: fix JWT regex for Apple secret key validation
dshukertjr12e63644ccae
diff --git a/studio/stores/authConfig/schema/AuthProviders/AuthProvidersFormValidation.tsx b/studio/stores/authConfig/schema/AuthProviders/AuthProvidersFormValidation.tsxindex 1b15ca18122..5ee9e140fa8 100644--- a/studio/stores/authConfig/schema/AuthProviders/AuthProvidersFormValidation.tsx+++ b/studio/stores/authConfig/schema/AuthProviders/AuthProvidersFormValidation.tsx@@ -404,7 +404,7 @@ const EXTERNAL_PROVIDER_APPLE = {then: (schema) =>schema.required('Secret key is required when using the OAuth flow.')- .matches(/^[a-z0-9_-]+([.][a-z0-9_-]+){2}$/i, 'Secret key should be a JWT.')+ .matches(/^[a-zA-Z0-9_-]+([.][a-zA-Z0-9_-]+){2}$/i, 'Secret key should be a JWT.').test({message: 'Secret key is not a correctly generated JWT.',test: (value?: string): boolean => {