Skip to content

Commit 50211b5

Browse files
author
Theodore Li
committed
Fix type error
1 parent 82e1802 commit 50211b5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/sim/lib/auth/hybrid.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const BEARER_PREFIX = 'Bearer '
2525
export function hasExternalApiCredentials(headers: Headers): boolean {
2626
if (headers.has(API_KEY_HEADER)) return true
2727
const auth = headers.get('authorization')
28-
return auth?.startsWith(BEARER_PREFIX)
28+
return auth?.startsWith(BEARER_PREFIX) ?? false
2929
}
3030

3131
export interface AuthResult {

0 commit comments

Comments
 (0)