diff --git a/apps/studio/components/interfaces/Auth/AuthProvidersFormValidation.tsx b/apps/studio/components/interfaces/Auth/AuthProvidersFormValidation.tsx index a8e282481a2..9925a997be9 100644 --- a/apps/studio/components/interfaces/Auth/AuthProvidersFormValidation.tsx +++ b/apps/studio/components/interfaces/Auth/AuthProvidersFormValidation.tsx @@ -614,7 +614,7 @@ const EXTERNAL_PROVIDER_APPLE = { try { const parts = value.split('.').map((value) => parseBase64URL(value)) const body = JSON.parse(parts[1]) - return Date.now() < body.exp - 7 * 24 * 60 * 60 * 1000 + return Date.now() < body.exp * 1000 - 7 * 24 * 60 * 60 * 1000 } catch (e: any) { console.log(e) return false