datakeen-session-react 1.1.195-dev.12 → 1.1.195-dev.13
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.
|
@@ -14,7 +14,8 @@ function getSessionCredential(sessionId) {
|
|
|
14
14
|
function credentialForRequest(url) {
|
|
15
15
|
if (/^[a-z]+:/i.test(url) || url.startsWith('//'))
|
|
16
16
|
return undefined;
|
|
17
|
-
|
|
17
|
+
// Routes SDK et biométrie Unissey : toutes adressent une seule session par son id.
|
|
18
|
+
var match = url.match(/^\/?session\/(?:sdk|unissey)\/([^/?]+)/);
|
|
18
19
|
return match ? credentials.get(decodeURIComponent(match[1])) : undefined;
|
|
19
20
|
}
|
|
20
21
|
|
|
@@ -12,7 +12,8 @@ function getSessionCredential(sessionId) {
|
|
|
12
12
|
function credentialForRequest(url) {
|
|
13
13
|
if (/^[a-z]+:/i.test(url) || url.startsWith('//'))
|
|
14
14
|
return undefined;
|
|
15
|
-
|
|
15
|
+
// Routes SDK et biométrie Unissey : toutes adressent une seule session par son id.
|
|
16
|
+
var match = url.match(/^\/?session\/(?:sdk|unissey)\/([^/?]+)/);
|
|
16
17
|
return match ? credentials.get(decodeURIComponent(match[1])) : undefined;
|
|
17
18
|
}
|
|
18
19
|
|
package/package.json
CHANGED