Skip to content
Snippets Groups Projects
Commit 481a01c5 authored by meskio's avatar meskio :tent:
Browse files

Renewing the token requires using the token

parent 0bd26243
No related branches found
No related tags found
No related merge requests found
...@@ -129,7 +129,7 @@ class App extends React.Component { ...@@ -129,7 +129,7 @@ class App extends React.Component {
}; };
renewToken() { renewToken() {
fetch("/api/token") fetch("/api/token", { headers: { 'x-authentication': this.state.token } })
.then(response => { .then(response => {
if (!response.ok) { if (!response.ok) {
throw new Error(response.status.toString()+' '+response.statusText); throw new Error(response.status.toString()+' '+response.statusText);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment