This commit is contained in:
Dhravya Shah 2026-09-26 06:50:48 +00:00 • committed by GitHub
commit 07d261d9a2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -132,9 +132,12 @@ export async function validateApiKey(
})
return user
} catch (error) {
console.error("API key validation error:", error)
const transient = transientAuthErrorFor(error)
if (transient) throw transient
if (transient) {
console.error("Auth backend transient failure:", error)
throw transient
}
console.debug("API key validation rejected:", error)
return null
}
}
@ -183,9 +186,12 @@ export async function validateOAuthToken(
expiresAt: payload.exp,
}
} catch (error) {
console.error("OAuth token validation error:", error)
const transient = transientAuthErrorFor(error)
if (transient) throw transient
if (transient) {
console.error("Auth backend transient failure:", error)
throw transient
}
console.debug("OAuth token validation rejected:", error)
return null
}
}