Skip to content

Commit

Permalink
Merge pull request #1344 from raghavyuva/fix/nullish-coalescing-operator
Browse files Browse the repository at this point in the history
fix(lint): nullish coalescing operator issue in hasCustomAuthorizationHeader
  • Loading branch information
avallete authored Jan 17, 2025
2 parents a50725d + e8cffda commit 76217a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SupabaseClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ export default class SupabaseClient<
fetch,
// auth checks if there is a custom authorizaiton header using this flag
// so it knows whether to return an error when getUser is called with no session
hasCustomAuthorizationHeader: 'Authorization' in this.headers ?? false,
hasCustomAuthorizationHeader: 'Authorization' in this.headers,
})
}

Expand Down

0 comments on commit 76217a4

Please sign in to comment.