From 75ee97eb7d332ef86d93d8b9294c7669c91cc1b3 Mon Sep 17 00:00:00 2001 From: Gildas Garcia <1122076+djhi@users.noreply.github.com> Date: Tue, 14 Apr 2026 10:45:28 +0200 Subject: [PATCH] fix apple jwt expiry check --- .../components/interfaces/Auth/AuthProvidersFormValidation.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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