Volvo Connected: require vin (BC) (#24247)
This commit is contained in:
parent
6befca050b
commit
e48927af32
4 changed files with 31 additions and 8 deletions
|
|
@ -178,6 +178,7 @@ func (o *OAuth) Token() (*oauth2.Token, error) {
|
|||
if err != nil {
|
||||
// force logout
|
||||
if strings.Contains(err.Error(), "invalid_grant") && settings.Exists(o.subject) {
|
||||
o.token = nil
|
||||
o.onlineC <- false
|
||||
settings.Delete(o.subject)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue