Volvo Connected: require vin (BC) (#24247)

This commit is contained in:
andig 2025-10-09 08:26:04 +02:00 • committed by GitHub
parent 6befca050b
commit e48927af32
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 31 additions and 8 deletions

View file

@ -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)
}