feat: ajout du refresh token

This commit is contained in:
2021-02-14 11:10:58 +01:00
parent 089b5985f8
commit 7544643cfb
8 changed files with 46 additions and 13 deletions

View File

@@ -20,9 +20,9 @@ var Resultat = `<!DOCTYPE html>
navigator.clipboard.writeText(jwt)
}
function test(){
function test(jwtID){
var xhr = new XMLHttpRequest();
xhr.open('GET', 'http://localhost:8080/oauth/refresh/1');
xhr.open('GET', 'http://localhost:8080/jwt/refresh/' + jwtID);
xhr.onreadystatechange = function() {
if (xhr.readyState === 4) {
alert(xhr.responseText);
@@ -41,7 +41,7 @@ var Resultat = `<!DOCTYPE html>
<a class="waves-effect waves-light btn tooltipped" data-tooltip="Copy" onclick="copy('{{.JwtProduce }}');" >
<i class="material-icons center">content_copy</i>
</a>
<a class="waves-effect waves-light btn tooltipped" data-tooltip="Refresh" onclick="refresh('{{.JwtProduce }}');" >
<a class="waves-effect waves-light btn tooltipped" data-tooltip="Refresh" onclick="refresh('{{.JwtID }}');" >
<i class="material-icons left bottom">refresh</i>Refresh Token
</a>
<div class="row">