tf-checkout-react-native 2.0.0-beta.10 → 2.0.0-beta.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tf-checkout-react-native",
3
- "version": "2.0.0-beta.10",
3
+ "version": "2.0.0-beta.12",
4
4
  "description": "TheTicketFairy ReactNative Checkout library",
5
5
  "homepage": "https://github.com/theticketfairy/tf-shared-libraries#readme",
6
6
  "author": "The Ticket Fairy",
package/src/configure.ts CHANGED
@@ -28,4 +28,10 @@ export const configureCheckout = (config: TtfConfig): void =>
28
28
  // NSURLSession/RCTNetworking would otherwise accept Set-Cookie outside
29
29
  // the SDK epoch guard. Only the SDK's header-backed jar owns native auth.
30
30
  withCredentials: false,
31
+ // Native owns no browser cookie jar. Ask the canonical session owner to
32
+ // return its guest carrier and resume that exact carrier on later requests.
33
+ auth: () => ({
34
+ ...config.auth?.(),
35
+ 'X-TF-Session-Mode': 'header-only',
36
+ }),
31
37
  })