mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
push crisp
This commit is contained in:
Vendored
+13
-13
@@ -50,19 +50,19 @@ const app = new Vue({
|
||||
store,
|
||||
created(){
|
||||
this.routesGuard();
|
||||
if (!('company_marking' in this.$store.getters.getDecodedAccessToken.user) && this.isProtectedRoute()) {
|
||||
this.$store.dispatch('crudRequest', {endpoint: this.route('api.account.authentication.refresh'), method: 'get'}).then(response => {
|
||||
let success = response.ok;
|
||||
response.json().then(response => {
|
||||
|
||||
if(!success){return;}
|
||||
|
||||
this.$store.dispatch('userAuthentication', {access_token: response.payload.refresh_token, redirect_url: window.location.href});
|
||||
|
||||
});
|
||||
})
|
||||
|
||||
}
|
||||
// if (!('company_marking' in this.$store.getters.getDecodedAccessToken.user) && this.isProtectedRoute()) {
|
||||
// this.$store.dispatch('crudRequest', {endpoint: this.route('api.account.authentication.refresh'), method: 'get'}).then(response => {
|
||||
// let success = response.ok;
|
||||
// response.json().then(response => {
|
||||
//
|
||||
// if(!success){return;}
|
||||
//
|
||||
// this.$store.dispatch('userAuthentication', {access_token: response.payload.refresh_token, redirect_url: window.location.href});
|
||||
//
|
||||
// });
|
||||
// })
|
||||
//
|
||||
// }
|
||||
},
|
||||
methods: {
|
||||
route: route
|
||||
|
||||
Reference in New Issue
Block a user