Use JWT for access tokens (#15972)

* Use JWT for access tokens

* Update requirements

* Improvements
This commit is contained in:
Paulus Schoutsen 2018-08-14 21:14:12 +02:00 committed by GitHub
parent ee5d49a033
commit e776f88eec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 203 additions and 155 deletions

View file

@ -28,7 +28,7 @@ def hass_ws_client(aiohttp_client):
await websocket.send_json({
'type': websocket_api.TYPE_AUTH,
'access_token': access_token.token
'access_token': access_token
})
auth_ok = await websocket.receive_json()