covas-bo/web/js/library.js

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="/";
});
}