uber / rides-ios-sdk

Uber Rides iOS SDK (beta)
https://developer.uber.com/docs
MIT License
374 stars 124 forks source link

Add Eats native SSO authentication option; fallback ability between native apps #241

Closed ebgraham closed 6 years ago

ebgraham commented 6 years ago

The new parameter productFlowPriority on LoginManager allows you to authenticate with UberEats or Uber rides, with the ability to fallback between them (e.g. if Eats isn't installed then try the rides app). By default, uses Uber rides app which makes this a non-breaking change.

Right now for web auth UberEats will still use the rides flow, but in a future update it will use its own web auth provider.

Due to Obj-c compatibility the API is a bit messier than I would've preferred.

ebgraham commented 6 years ago

updated this PR, but realized I didn't open it against develop. going to re-open against develop branch