Skip to content

Commit 5400dfa

Browse files
committed
feat(clerk-js): Add mobile request header back in
1 parent ba17366 commit 5400dfa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/expo/src/provider/singleton/createClerkInstance.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ export function createClerkInstance(ClerkClass: typeof Clerk) {
165165
// Instructs the backend that the request is from a mobile device.
166166
// Some iOS devices have an empty user-agent, so we can't rely on that.
167167
if (isNative()) {
168+
(requestInit.headers as Headers).set('x-mobile', '1');
168169
(requestInit.headers as Headers).set('x-expo-sdk-version', packageJson.version);
169170
}
170171
});

0 commit comments

Comments
 (0)