Skip to content

Commit

Permalink
save token in config
Browse files Browse the repository at this point in the history
  • Loading branch information
SanterreJo committed Apr 11, 2024
1 parent 15d8025 commit e1562a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 3 additions & 2 deletions homebridge-ui/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
]
});
window.open(href, "_blank");
const response = await callback;
console.log(response);
const { accessToken, refreshToken, expiresIn, refreshTokenExpiresIn } = await callback;
const pluginConfigBlocks = await homebridge.getPluginConfig();
console.log(pluginConfigBlocks);
}
</script>
1 change: 0 additions & 1 deletion homebridge-ui/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ class UiServer extends HomebridgePluginUiServer {
}
);
const body = await tokenResponse.json();
console.log(body);
const accessToken = body.access_token;
const refreshToken = body.refresh_token;
const expiresIn = body.expires_in;
Expand Down

0 comments on commit e1562a3

Please sign in to comment.