forked from v4l3n71n/covas-bo
9 lines
207 B
JavaScript
9 lines
207 B
JavaScript
|
function checkToken(){
|
||
|
|
||
|
instance.get("token", { withCredentials: true})
|
||
|
.then(function(response) { location.href="html/home.html"; })
|
||
|
.catch(function(error){
|
||
|
location.href="/";
|
||
|
});
|
||
|
|
||
|
}
|