mirror of
https://github.com/beestat/app.git
synced 2025-05-24 02:14:03 -04:00
Fixed #269 - Authorization Failures
Ecobee also switched me over to the new JWT flow.
This commit is contained in:
parent
70e55a5f3c
commit
b34d84ee9d
@ -72,6 +72,7 @@ class ecobee_token extends cora\crud {
|
||||
'deleted' => false
|
||||
]
|
||||
);
|
||||
|
||||
if(count($ecobee_tokens) === 0) {
|
||||
throw new cora\exception('Could not refresh ecobee token; no token found.', 10001);
|
||||
}
|
||||
@ -84,6 +85,7 @@ class ecobee_token extends cora\crud {
|
||||
'method' => 'POST',
|
||||
'endpoint' => 'token',
|
||||
'arguments' => [
|
||||
'ecobee_type' => 'jwt',
|
||||
'grant_type' => 'refresh_token',
|
||||
'refresh_token' => $ecobee_token['refresh_token']
|
||||
]
|
||||
|
Loading…
x
Reference in New Issue
Block a user