covas-bo/web/js/library.js

9 lines
207 B
JavaScript
Raw Normal View History

2022-07-25 20:35:54 +02:00
function checkToken(){
instance.get("token", { withCredentials: true})
.then(function(response) { location.href="html/home.html"; })
.catch(function(error){
location.href="/";
});
}