Skip to content

Commit

Permalink
fix getAuthHeaders typing (#259)
Browse files Browse the repository at this point in the history
  • Loading branch information
lihebi authored May 3, 2023
1 parent 8649eeb commit f6d8777
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/src/lib/auth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ function useProvideAuth() {
);
}, []);

const getAuthHeaders = () => {
if (!authToken) return null;
const getAuthHeaders = (): Record<string, string> => {
if (!authToken) return {};

return {
authorization: `Bearer ${authToken}`,
Expand Down

0 comments on commit f6d8777

Please sign in to comment.