Skip to content

Commit

Permalink
Set User-Agent on outgoing requests
Browse files Browse the repository at this point in the history
  • Loading branch information
cjdenio committed Jul 12, 2024
1 parent 2e776be commit 249c0bf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export default function useClient(token?: string | null | undefined) {
prefixUrl: process.env.EXPO_PUBLIC_API_BASE,
headers: {
Authorization: `Bearer ${token || _token}`,
"User-Agent": "HCB-Mobile",
},
}),
[token, _token],
Expand Down

0 comments on commit 249c0bf

Please sign in to comment.