@reactionary/provider-commercetools 0.3.1 → 0.3.2
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,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reactionary/provider-commercetools",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"types": "src/index.d.ts",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@reactionary/core": "0.3.
|
|
7
|
+
"@reactionary/core": "0.3.2",
|
|
8
8
|
"debug": "^4.4.3",
|
|
9
9
|
"zod": "4.1.9",
|
|
10
10
|
"@commercetools/ts-client": "^4.2.1",
|
|
@@ -26,6 +26,7 @@ class CommercetoolsIdentityProvider extends IdentityProvider {
|
|
|
26
26
|
}
|
|
27
27
|
async getSelf(payload) {
|
|
28
28
|
const identity = await this.commercetools.introspect();
|
|
29
|
+
this.updateIdentityContext(identity);
|
|
29
30
|
return success(identity);
|
|
30
31
|
}
|
|
31
32
|
async login(payload) {
|
|
@@ -33,10 +34,12 @@ class CommercetoolsIdentityProvider extends IdentityProvider {
|
|
|
33
34
|
payload.username,
|
|
34
35
|
payload.password
|
|
35
36
|
);
|
|
37
|
+
this.updateIdentityContext(identity);
|
|
36
38
|
return success(identity);
|
|
37
39
|
}
|
|
38
40
|
async logout(payload) {
|
|
39
41
|
const identity = await this.commercetools.logout();
|
|
42
|
+
this.updateIdentityContext(identity);
|
|
40
43
|
return success(identity);
|
|
41
44
|
}
|
|
42
45
|
async register(payload) {
|
|
@@ -44,6 +47,7 @@ class CommercetoolsIdentityProvider extends IdentityProvider {
|
|
|
44
47
|
payload.username,
|
|
45
48
|
payload.password
|
|
46
49
|
);
|
|
50
|
+
this.updateIdentityContext(identity);
|
|
47
51
|
return success(identity);
|
|
48
52
|
}
|
|
49
53
|
}
|