We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 82e1802 commit 50211b5Copy full SHA for 50211b5
1 file changed
apps/sim/lib/auth/hybrid.ts
@@ -25,7 +25,7 @@ const BEARER_PREFIX = 'Bearer '
25
export function hasExternalApiCredentials(headers: Headers): boolean {
26
if (headers.has(API_KEY_HEADER)) return true
27
const auth = headers.get('authorization')
28
- return auth?.startsWith(BEARER_PREFIX)
+ return auth?.startsWith(BEARER_PREFIX) ?? false
29
}
30
31
export interface AuthResult {
0 commit comments