checkToken(); signOut(); var nbPages = 20; instance.get("users/count", { withCredentials: true }).then(function(response){ var count = response.data / nbPages; var reste = response.data % nbPages; var total = 0; if(reste != 0){ total = Number.parseInt(count) + 1; } if(total > 1){ document.getElementById("page").classList.remove("hidden"); var pageCurrent = getQuery("page"); var page = 1; if(pageCurrent.length > 0){ page = Number.parseInt(pageCurrent); } for (var i=0; i 0){ page = Number.parseInt(pageCurrent); page = page - 1; } instance.get("users", {withCredentials: true, params :{ page:page, nbPages: nbPages}}).then(function(response){ listData = response.data; for (var i=0; i