Open Bug 1380700 Opened 7 years ago Updated 2 years ago

Use returned conflicting device ID to resolve conflict during FxA registration

Categories

(Firefox for iOS :: Sync, enhancement)

Other
iOS
enhancement

Tracking

()

People

(Reporter: eoger, Unassigned)

References

Details

(Whiteboard: [MobileCore])

During the FxA device registration process, if the server returns a device session conflict error, we have to make a 2nd request to FxA's /account/devices to identify the conflicting device. [0]

Soon, they will include in the 1st request error response the conflicting device ID, which would allow us to save a round trip to the server. [1]
We should update our code to use that new returned field.

[0] https://github.com/mozilla-mobile/firefox-ios/blob/7c8d395934c8d3af8f4a77bbcd711b963a3b71a9/Account/FxADeviceRegistration.swift#L156

[1] https://github.com/mozilla/fxa-auth-server/pull/1990
Whiteboard: [MobileCore][FxA]
Whiteboard: [MobileCore][FxA] → [MobileCore]
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.