mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-08 06:38:46 +00:00
Update proxy.js
This commit is contained in:
parent
4794c8e2ed
commit
1aa559537a
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ async function apiCall(widget, endpoint, service) {
|
|||
|
||||
if (status === 401 || status === 403) {
|
||||
logger.debug("Homebridge API rejected the request, attempting to obtain new session token");
|
||||
const { accessToken } = login(widget, service);
|
||||
const { accessToken } = await login(widget, service);
|
||||
headers.Authorization = `Bearer ${accessToken}`;
|
||||
|
||||
// retry the request, now with the new session token
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue