File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
packages/expo/src/provider/singleton Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @clerk/clerk-expo ' : patch
3+ ---
4+
5+ Add ` x-expo-sdk-version ` header to HTTP requests to match iOS and Android SDK patterns.
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import type {
1010} from '@clerk/types' ;
1111import { Platform } from 'react-native' ;
1212
13+ import packageJson from '../../../package.json' ;
1314import {
1415 ClientResourceCache ,
1516 DUMMY_CLERK_CLIENT_RESOURCE ,
@@ -165,6 +166,7 @@ export function createClerkInstance(ClerkClass: typeof Clerk) {
165166 // Some iOS devices have an empty user-agent, so we can't rely on that.
166167 if ( isNative ( ) ) {
167168 ( requestInit . headers as Headers ) . set ( 'x-mobile' , '1' ) ;
169+ ( requestInit . headers as Headers ) . set ( 'x-expo-sdk-version' , packageJson . version ) ;
168170 }
169171 } ) ;
170172
You can’t perform that action at this time.
0 commit comments