diff --git a/example/ios/Podfile.lock b/example/ios/Podfile.lock index 09b58cc..e888ccd 100644 --- a/example/ios/Podfile.lock +++ b/example/ios/Podfile.lock @@ -487,7 +487,7 @@ PODS: - React-perflogger (= 0.72.4) - SocketRocket (0.6.1) - VCL (1.22.0) - - velocitycareerlabs-vcl-react-native (1.22.0): + - velocitycareerlabs-vcl-react-native (1.22.1): - RCT-Folly (= 2021.07.22.00) - React-Core - VCL (= 1.22.0) @@ -716,7 +716,7 @@ SPEC CHECKSUMS: ReactCommon: 4b2bdcb50a3543e1c2b2849ad44533686610826d SocketRocket: f32cd54efbe0f095c4d7594881e52619cfe80b17 VCL: 3a538f833b0e24840717875cffcc4b6685b81fbe - velocitycareerlabs-vcl-react-native: 32c8a17f748fa221cfb7e1572ba8fe24611e7bff + velocitycareerlabs-vcl-react-native: 9d65c0a8562a18a11e7311179b2670ba7802077e Yoga: 3efc43e0d48686ce2e8c60f99d4e6bd349aff981 YogaKit: f782866e155069a2cca2517aafea43200b01fd5a diff --git a/example/src/App.tsx b/example/src/App.tsx index d98f9e2..75cc29a 100644 --- a/example/src/App.tsx +++ b/example/src/App.tsx @@ -334,7 +334,8 @@ export default function App() { `VCL Generated Offers Response Code: ${offers.responseCode}` ); console.log( - `VCL Generated Offers Session Token: ${offers.sessionToken.value}` + `VCL Generated Offers Session Token value: ${offers.sessionToken.value}`, + `VCL Generated Offers Session Token expires in: ${offers.sessionToken.expiresIn}` ); // Check offers invoked after the push notification is notified the app that offers are ready: @@ -364,7 +365,8 @@ export default function App() { ); console.log(`VCL Checked Offers Response Code: ${offers.responseCode}`); console.log( - `VCL Checked Offers Session Token: ${offers.sessionToken.value}` + `VCL Checked Offers Session Token value: ${offers.sessionToken.value}`, + `VCL Checked Offers Session Token expires in: ${offers.sessionToken.expiresIn}` ); if (offers.responseCode === 200) { finalizeOffers(credentialManifest, offers); diff --git a/package.json b/package.json index 50252af..27c725a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@velocitycareerlabs/vcl-react-native", - "version": "1.22.0", + "version": "1.22.1", "description": "Velocity Career Labs React Native SDK", "main": "lib/commonjs/index", "module": "lib/module/index", diff --git a/src/api/entities/VCLToken.ts b/src/api/entities/VCLToken.ts index 3463341..5e2d590 100644 --- a/src/api/entities/VCLToken.ts +++ b/src/api/entities/VCLToken.ts @@ -7,5 +7,5 @@ export interface VCLToken { value: string; - expirationDate: BigInt + expiresIn: BigInt; }