Skip to content

Commit f271acc

Browse files
authored
fix: add create*Client string in x-client-info (#85)
A tiny change that lets Supabase team track usage of `createServerClient` and `createBrowserClient` separately across requests.
1 parent 9524528 commit f271acc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/createBrowserClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ export function createBrowserClient<
127127
...options?.global,
128128
headers: {
129129
...options?.global?.headers,
130-
"X-Client-Info": `supabase-ssr/${VERSION}`,
130+
"X-Client-Info": `supabase-ssr/${VERSION} createBrowserClient`,
131131
},
132132
},
133133
auth: {

src/createServerClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ export function createServerClient<
159159
...options?.global,
160160
headers: {
161161
...options?.global?.headers,
162-
"X-Client-Info": `supabase-ssr/${VERSION}`,
162+
"X-Client-Info": `supabase-ssr/${VERSION} createServerClient`,
163163
},
164164
},
165165
auth: {

0 commit comments

Comments
 (0)