fix: let keyless browser validation settle

This commit is contained in:
Said Turksever committed 2026-10-20 00:15:49 +01:00
1 parent 2f25ac0784
commit 84d96971df
5 files changed
+40 -2

No files matched your search

+4 -1
View File
@@ -38,7 +38,10 @@ export function createGoogleTokenSource({
headers: { Accept: 'application/json' },
cache: 'no-store',
});
if (!response.ok) return null;
if (!response.ok) {
await response.body?.cancel();
return null;
}
return parseToken(await response.json(), now());
} catch {
return null;