mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-12 11:56:34 +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() {
|
function redirectLogin() {
|
||||||
const urlBase = __DEV__ ? '/home-assistant-polymer/src' : `/frontend_${__BUILD__}`;
|
document.location = `${__PUBLIC_PATH__}authorize.html?response_type=code&client_id=${window.clientId}&redirect_uri=/`;
|
||||||
document.location = `${urlBase}/authorize.html?response_type=code&client_id=${window.clientId}&redirect_uri=/`;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
window.refreshToken = () =>
|
window.refreshToken = () =>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user