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
Branches
Tags backupninja_upstream/1.0.2
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment