fix: use deviceType 14 (Server) instead of 10 (Firefox)
Prevents confusing 'Firefox' login emails from Vaultwarden. Device type 14 = SDK/Server, which better represents this service.
This commit is contained in:
1 parent
9f8ebf2408
commit
d2eb2518fe
1 file changed
+2
-2
@@ -414,7 +414,7 @@ func (ac *APIClient) loginWithPassword(hashedPassword string) (*TokenResponse, e
|
|||||||
"password": {hashedPassword},
|
"password": {hashedPassword},
|
||||||
"scope": {"api offline_access"},
|
"scope": {"api offline_access"},
|
||||||
"client_id": {"web"},
|
"client_id": {"web"},
|
||||||
"deviceType": {"10"},
|
"deviceType": {"14"},
|
||||||
"deviceIdentifier": {ac.deviceID},
|
"deviceIdentifier": {ac.deviceID},
|
||||||
"deviceName": {"vaultwarden-api"},
|
"deviceName": {"vaultwarden-api"},
|
||||||
}
|
}
|
||||||
@@ -429,7 +429,7 @@ func (ac *APIClient) loginWithAPIKey() (*TokenResponse, error) {
|
|||||||
"client_id": {ac.clientID},
|
"client_id": {ac.clientID},
|
||||||
"client_secret": {ac.clientSecret},
|
"client_secret": {ac.clientSecret},
|
||||||
"scope": {"api"},
|
"scope": {"api"},
|
||||||
"deviceType": {"10"},
|
"deviceType": {"14"},
|
||||||
"deviceIdentifier": {ac.deviceID},
|
"deviceIdentifier": {ac.deviceID},
|
||||||
"deviceName": {"vaultwarden-api"},
|
"deviceName": {"vaultwarden-api"},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user