options.auth = false should prevent auth headers from being added to request

This commit is contained in:
Ben Gotow 2017-09-29 12:42:04 -05:00
parent f0fd68b04f
commit 1d475ab7a1

View file

@ -58,7 +58,7 @@ export async function makeRequest(options) {
options.headers.set('Accept', 'application/json');
options.credentials = 'include';
if (!options.auth) {
if (!options.auth && options.auth !== false) {
if (options.server === 'identity') {
IdentityStore = IdentityStore || require('./stores/identity-store').default;
const username = IdentityStore.identity().token;