mirror of
https://github.com/wassname/talk.git
synced 2026-07-20 12:40:47 +08:00
Improve auth token logic.
This commit is contained in:
@@ -40,7 +40,7 @@ const buildOptions = (inputOptions = {}) => {
|
||||
|
||||
// Apply authToken header
|
||||
let authToken = getAuthToken();
|
||||
if (authToken) {
|
||||
if (authToken !== null) {
|
||||
options.headers.Authorization = `Bearer ${authToken}`;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user