Skip to content

Autosignin does not trigger hub AuthChannelEventName.SIGNED_IN #3064

@niqo01

Description

@niqo01

Before opening, please confirm:

Language and Async Model

Kotlin - Coroutines

Amplify Categories

Authentication

Gradle script dependencies

amplify = "2.27.4"

amplify-auth-cognito = { module = "com.amplifyframework:aws-auth-cognito", version.ref = "amplify" }
amplify-core-kotlin = { module = "com.amplifyframework:core-kotlin", version.ref = "amplify" }

Environment information

Gradle 8.13
------------------------------------------------------------

Build time:    2025-02-25 09:22:14 UTC
Revision:      073314332697ba45c16c0a0ce1891fa6794179ff

Kotlin:        2.0.21
Groovy:        3.0.22
Ant:           Apache Ant(TM) version 1.10.15 compiled on August 25 2024
Launcher JVM:  21.0.7 (Azul Systems, Inc. 21.0.7+6-LTS)
Daemon JVM:    /Library/Java/JavaVirtualMachines/zulu-21.jdk/Contents/Home (no JDK specified, using current Java home)
OS:            Mac OS X 15.4.1 aarch64



Please include any relevant guides or documentation you're referencing

https://docs.amplify.aws/android/build-a-backend/auth/connect-your-frontend/listen-to-auth-events/

Describe the bug

when auth.autoSignIn() succeed Amplify.Hub does not trigger AuthChannelEventName.SIGNED_IN.name event name.

Reproduction steps (if applicable)

  1. subscribe to hub event
        Amplify.Hub.subscribe(HubChannel.AUTH).collect {
          logger.d{ "Event: $it" }
        }
  1. auto sign in successfully auth.autoSignIn()
  2. notice that no event are logged.

Code Snippet

Log output

Configuration File

No response

GraphQL Schema

No response

Additional information and screenshots

No response

Metadata

Metadata

Assignees

Labels

authRelated to the Auth category/pluginsbugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions