Improve auth token logic.

This commit is contained in:
David Erwin
2017-06-05 13:58:13 -04:00
parent 7c66d846c2
commit 90d7e3706c
+1 -1
View File
@@ -40,7 +40,7 @@ const buildOptions = (inputOptions = {}) => {
// Apply authToken header
let authToken = getAuthToken();
if (authToken) {
if (authToken !== null) {
options.headers.Authorization = `Bearer ${authToken}`;
}