Skip to content

Commit e8cffda

Browse files
committed
fix: 🐛 Fix nullish coalescing operator issue in hasCustomAuthorizationHeader
fixes the following bug : The left operand of the "??" operator here will never be null or undefined, so it will always be returned. #1338
1 parent 651ff12 commit e8cffda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SupabaseClient.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ export default class SupabaseClient<
308308
fetch,
309309
// auth checks if there is a custom authorizaiton header using this flag
310310
// so it knows whether to return an error when getUser is called with no session
311-
hasCustomAuthorizationHeader: 'Authorization' in this.headers ?? false,
311+
hasCustomAuthorizationHeader: 'Authorization' in this.headers,
312312
})
313313
}
314314

0 commit comments

Comments
 (0)