7 Commits

Author SHA1 Message Date
Jason Hu
033e058745 Fix access token expires issue (#1554) 2018-08-09 11:17:40 +02:00
Jason Hu
348b284ba6 Check access token expires before we use it. (#1444)
* Check access token expires before we use it.If we found access token expires, we proactive call refresh token.So that we can avoid uncessary invalid auth error in backend.

* Move expires  calc to fetchToken() and refresToken()

* Address code review comment
2018-07-16 23:11:05 +02:00
Paulus Schoutsen
dbb6a8e6d4
Fix when not using oauth (#1434) 2018-07-10 10:49:51 +02:00
Paulus Schoutsen
2e4ddebcda
Use IndieAuth for client ID (#1427)
* Use IndieAuth for client ID

* Lint
2018-07-09 18:24:49 +02:00
Paulus Schoutsen
d40dea6d3b
Fix auth redirect url (#1357) 2018-06-28 14:48:01 -04:00
Paulus Schoutsen
e57d9f7751
Add websocket helpers to polymer (#1187)
* Add websocket helpers to polymer

* Lint

* Upgrade to home-assistant-js-websocket@2.0.0
2018-05-18 13:25:01 -04:00
Paulus Schoutsen
bc27f854f1
More cleanup (#1185)
* More cleanup

* Set up correct urls authorize.html

* Fix polymer lint

* Remove reference to bower

* Tweak uglify settings
2018-05-17 17:51:07 -04:00