fix(W3): remove incorrect 'Bearer' prefix in Authorization header
AList expects bare token (not 'Bearer <token>'). With 'Bearer' prefix, all role/get calls returned non-data responses -> currentPaths degraded to [] -> W3 kept re-applying same scopes every run (false toAdd) and never detected expired scopes (false toRemove). This is the root cause of W3 not showing hoe's expiry removal.
This commit is contained in:
+1
-1
@@ -29,7 +29,7 @@ async function ncGet(path) {
|
||||
async function alistReq(method, path, body, token) {
|
||||
return await this.helpers.httpRequest({
|
||||
method, url: ALIST + path,
|
||||
headers: token ? { Authorization: 'Bearer ' + token } : {},
|
||||
headers: token ? { Authorization: token } : {},
|
||||
body, json: true,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user