Skip to content

Social sign in with Google does not return back to app for users who have never set up chrome and are trying to add their account. #2966

@Jeffrey-Chau-Leo

Description

@Jeffrey-Chau-Leo

Before opening, please confirm:

Language and Async Model

Kotlin

Amplify Categories

Authentication

Gradle script dependencies

// Put output below this line
com.amplifyframework:core-kotlin:2.14.10
com.amplifyframework:aws-auth-cognito:2.14.10

Environment information

# Put output below this line
------------------------------------------------------------
Gradle 8.7
------------------------------------------------------------

Build time:   2024-03-22 15:52:46 UTC
Revision:     650af14d7653aa949fce5e886e685efc9cf97c10

Kotlin:       1.9.22
Groovy:       3.0.17
Ant:          Apache Ant(TM) version 1.10.13 compiled on January 4 2023
JVM:          22.0.1 (Oracle Corporation 22.0.1+8-16)
OS:           Mac OS X 13.5 aarch64


Please include any relevant guides or documentation you're referencing

No response

Describe the bug

For mobile users who have never opened chrome and set it up, when signing in via Google social, they are presented with either Add account to device or User without an account. The latter will take you to the expected email+pass+2FA flow which upon success will eventually return the user back to the app signed in.

If the user were to Add account to device, they instead remain within chrome tabs upon completion of the flow. Clicking on Continue as {added account} takes the user to their account settings screen rather than back into the app signed in.

Reproduction steps (if applicable)

  1. Create new emulator
  2. Social sign in via Google
  3. Presented with set up flow
  4. Select Add account to device
  5. Finish set up flow (i.e. Google ToS and Privacy Policy, Google services)
  6. Step 3 shown (with added account)
  7. Select Continue as {added account} sends user to account settings page

Code Snippet

// Put your code below this line.

Log output

// Put your logs below this line


amplifyconfiguration.json

No response

GraphQL Schema

// Put your schema below this line

Additional information and screenshots

Set up flow initial screen

Screenshot_1734391043

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions