From 481a01c5a0d86b4a24a27cb9b3d2969e35e55ce7 Mon Sep 17 00:00:00 2001 From: meskio <meskio@sindominio.net> Date: Wed, 7 Oct 2020 19:28:58 +0200 Subject: [PATCH] Renewing the token requires using the token --- src/App.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.js b/src/App.js index 3ea2fef..679b601 100644 --- a/src/App.js +++ b/src/App.js @@ -129,7 +129,7 @@ class App extends React.Component { }; renewToken() { - fetch("/api/token") + fetch("/api/token", { headers: { 'x-authentication': this.state.token } }) .then(response => { if (!response.ok) { throw new Error(response.status.toString()+' '+response.statusText); -- GitLab