@hotwax/dxp-components 1.3.2 → 1.3.3
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/lib/components/Login.js +1 -1
- package/lib/store/auth.d.ts +1 -3
- package/lib/store/auth.js +0 -11
- package/package.json +1 -1
package/lib/components/Login.js
CHANGED
|
@@ -49,7 +49,7 @@ var _default = (0, _vue.defineComponent)({
|
|
|
49
49
|
},
|
|
50
50
|
oms: appOms
|
|
51
51
|
});
|
|
52
|
-
_index.loginContext.confirmSessionEnd(
|
|
52
|
+
_index.loginContext.confirmSessionEnd(appOms).then(isConfirmed => {
|
|
53
53
|
isConfirmed ? this.handleUserFlow(token, oms, expirationTime) : this.router.push('/');
|
|
54
54
|
});
|
|
55
55
|
} else {
|
package/lib/store/auth.d.ts
CHANGED
package/lib/store/auth.js
CHANGED
|
@@ -28,17 +28,6 @@ const useAuthStore = (0, _pinia.defineStore)('userAuth', {
|
|
|
28
28
|
return state.token.value && !isTokenExpired;
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
|
-
actions: {
|
|
32
|
-
// TODO will be done once backend support is there
|
|
33
|
-
async authenticate() {
|
|
34
|
-
// try {
|
|
35
|
-
// // authenticate through cookies
|
|
36
|
-
// return this.token
|
|
37
|
-
// } catch (error) {
|
|
38
|
-
// console.log(error)
|
|
39
|
-
// }
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
31
|
persist: true
|
|
43
32
|
});
|
|
44
33
|
exports.useAuthStore = useAuthStore;
|