Skip to content

Commit 1a72d1c

Browse files
committed
Execute fetch() even if there's no oauth token.
1 parent 62b452b commit 1a72d1c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

react-decoupled/src/utils/auth.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,9 @@ export function getAuthClient(config = {}) {
9696
console.log('using token', oauth_token);
9797
options.headers.append('Authorization', `Bearer ${oauth_token.access_token}`);
9898
}
99-
return fetch(`${config.base}${url}`, options);
10099
}
100+
101+
return fetch(`${config.base}${url}`, options);
101102
}
102103

103104
/**

0 commit comments

Comments
 (0)