mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-09 10:26:35 +00:00
Fix auth redirect url (#1357)
This commit is contained in:
parent
8bbc8e0bb8
commit
d40dea6d3b
@ -29,8 +29,7 @@ const init = window.createHassConnection = function (password, accessToken) {
|
||||
};
|
||||
|
||||
function redirectLogin() {
|
||||
const urlBase = __DEV__ ? '/home-assistant-polymer/src' : `/frontend_${__BUILD__}`;
|
||||
document.location = `${urlBase}/authorize.html?response_type=code&client_id=${window.clientId}&redirect_uri=/`;
|
||||
document.location = `${__PUBLIC_PATH__}authorize.html?response_type=code&client_id=${window.clientId}&redirect_uri=/`;
|
||||
}
|
||||
|
||||
window.refreshToken = () =>
|
||||
|
Loading…
x
Reference in New Issue
Block a user