Mailspring doesn’t recognise Gmail authorisation when the account is under Family management

Description

Mailspring isn’t able to complete authentication flow for Google Family accounts.

To Reproduce…

Steps to reproduce the behavior:

  1. Register a Gmail account under Google Family management in Mailspring.
  2. Mailspring is gonna ask for browser authentication.
  3. The default browser is gonna open in the Google account authentication.
  4. Choose the Family “child” account for authentication.
  5. Log the “child” account in.
  6. Google is gonna as for parent confirmation.
  7. Log the parent account in.
  8. Allow Mailspring to access the “child” account.
  9. Google is gonna try to redirect back to Mailspring.
  10. Mailspring never receives the flow back.

Expected Behavior

After the browser process, Mailspring is expected to complete the procedure, which never happens.

Screenshots

Setup

  • OS and Version: Linux gondolin 6.2.10-arch1-1 #1 SMP PREEMPT_DYNAMIC Fri, 07 Apr 2023 02:10:43 +0000 x86_64 GNU/Linux
    • Installation Method: AUR
  • Mailspring Version: 1.10.8-1