Uber login (Google SSO)
Log into Uber (riders.uber.com) with Continue with Google, handling the Google account chooser and consent screen, and land on your trips page. Returns straight away if you are already signed in, and reports the Uber account email and first name. Stops with a clear message if Uber asks for a phone number or SMS code instead of filling anything in. Optionally pass which Google account to use. Needs a browser already signed in to Google and a Google account that already has an Uber account.
Input
email optionalGoogle account to pick in the chooser. Omit to use the first account listed.
Output
url requiredalready requiredtrue when a session already existed and no sign-in was needed
loggedIn requiredname optionalUber rider first name
account optionalUber account email
FAQ
List Uber trips
List the signed-in rider's past Uber trips (riders.uber.com/trips), newest first. Returns per trip: tripId (uuid), title (destination address), when (e.g. "Mar 3 • 8:15 PM"), amount (e.g. "€14.50"), url. Loads more trips until max is reached or the list runs out. tripId is the join key for riders.uber.com/download_invoice.
Uber whoami (signed-in rider account)
Report which Uber rider account this browser is signed in as: the rider id, first and last name, email and phone number. Being signed out is reported as a normal answer (loggedIn false), not an error, so it can be used to check a session before running other Uber rider scripts.
Download Uber trip invoice PDF
Download one Uber trip's invoice PDF (trip page > Download Invoice) by tripId (uuid from riders.uber.com/list_trips). Returns the file's filename and the path where the browser saved it (or a url to it on a managed browser), so you can read or move the PDF directly. Trips without an invoice (e.g. canceled €0.00 rides) have no Download Invoice affordance and fail loudly.
