Request auth on first load with existing token

This commit is contained in:
Tom Moor
2017-11-26 22:26:02 -08:00
parent bd8829d057
commit a573c76512
5 changed files with 50 additions and 15 deletions

View File

@@ -32,7 +32,7 @@ class ApiClient {
modifiedPath = path;
}
} else if (method === 'POST' || method === 'PUT') {
body = JSON.stringify(data);
body = data ? JSON.stringify(data) : undefined;
}
// Construct headers