Skip to content

Commit 120bd88

Browse files
committed
chore(auth): restore hybrid.ts to staging
1 parent 617983e commit 120bd88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)