@@ -5,15 +5,15 @@ step for testing or creating proof of concepts.
55
66The code is made with renderRedirectToMobile as first step, if it detects that the user is in desktop it will
77present renderRedirectToMobile with an ` URL ` that points to this same file using the ` VITE_LOCAL_SERVER_URL `
8- enviroment variable + a generated ` uuid ` that we received from the call to ` /start ` .
8+ enviroment variable + a generated ` uniqueId ` that we received from the call to ` /start ` .
99
1010The ` renderRedirectToMobile ` has a behaviour where it automatically polls for the status of the session, and
1111when it detects that the session has finished, it executes the ` onSuccess ` method to continue.
1212
13- The URL when opened in mobile will read the ` uuid ` from the query params, and send it to ` /start ` to continue
13+ The URL when opened in mobile will read the ` uniqueId ` from the query params, and send it to ` /start ` to continue
1414the session instead of creating a new one.
1515
16- The ` uuid ` links both desktop and mobile that are running in parallel to give the best possible experience to
16+ The ` uniqueId ` links both desktop and mobile that are running in parallel to give the best possible experience to
1717the user.
1818
1919This diagram explains it in detail:
@@ -28,13 +28,13 @@ sequenceDiagram
2828 f -->> b: /start
2929 b -->> a: /omni/start
3030 a -->> b: {token, interviewId}
31- note over b: Generate uuid
32- note over b: Save Session<br>{token, interviewId, uuid }
33- b-->> f: {token, interviewId, uuid }
34- else uuid comes in query params
35- f -->> b: /start?uuid=<uuid >
36- note over b: Retrieve stored Session<br>{token, interviewId, uuid }
37- b-->> f: {token, interviewId, uuid }
31+ note over b: Generate uniqueId
32+ note over b: Save Session<br>{token, interviewId, uniqueId }
33+ b-->> f: {token, uniqueId }
34+ else uniqueId comes in query params
35+ f -->> b: /start?uniqueId=<uniqueId >
36+ note over b: Retrieve stored Session<br>{token, interviewId, uniqueId }
37+ b-->> f: {token, uniqueId }
3838 end
3939
4040 alt Desktop
@@ -68,7 +68,7 @@ Copy `.env.example` to `.env.local` and add your local values
6868VITE_TOKEN_SERVER_URL=/api
6969VITE_LOCAL_SERVER_URL=https://your-ip:port/
7070VITE_API_URL=https://demo-api.incodesmile.com/0
71- VITE_SDK_URL=https://sdk.incode.com/sdk/onBoarding-1.69 .0.js
71+ VITE_SDK_URL=https://sdk.incode.com/sdk/onBoarding-1.70 .0.js
7272```
7373Remember the Flow holds the backend counter part of the process, some configurations there might affect the behavior of the WebSDK here.
7474
0 commit comments