@saooti/octopus-sdk 31.0.10 → 31.0.11

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/README.md CHANGED
@@ -585,3 +585,4 @@ See [Configuration Reference](https://cli.vuejs.org/config/).
585
585
  * 31.0.8 Dropdown Lang + classicSelect
586
586
  * 31.0.9 LazyLoad image
587
587
  * 31.0.10 Sécurisation
588
+ * 31.0.11 Sécurisation
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saooti/octopus-sdk",
3
- "version": "31.0.10",
3
+ "version": "31.0.11",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -5,7 +5,7 @@ export const handle403 = defineComponent({
5
5
  handle403(error: AxiosError): void {
6
6
  if (403 === error.response?.status) {
7
7
  if(!this.$store.state.authentication.isAuthenticated){
8
- this.$router.push("/sso/login");
8
+ window.location.href = window.location.origin + "/sso/login";
9
9
  }else{
10
10
  this.$router.push({
11
11
  path: '/main/pub/error'