Skip to content

Update from 2.30.1 to 2.30.3 #3159

@lolucosmin

Description

@lolucosmin

Before opening, please confirm:

Language and Async Model

RxJava

Amplify Categories

Authentication

Gradle script dependencies

// Put output below this line
dependencies.add("implementation", libs.amplify.api)
dependencies.add("implementation", libs.amplify.auth)
dependencies.add("implementation", libs.amplify.core)
dependencies.add("implementation", libs.amplify.pinpoint)
dependencies.add("implementation", libs.amplify.rxbindings)
dependencies.add("implementation", libs.amplify.storage)

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.8 (JetBrains s.r.o. 21.0.8+-14196175-b1038.72)
Daemon JVM:    D:\Programs\Studio\jbr (no JDK specified, using current Java home)
OS:            Windows 11 10.0 amd64

Please include any relevant guides or documentation you're referencing

No response

Describe the bug

We update our project from 2.30.1 to last version 2.30.3. At this moment if a user was sign in in version 2.30.1, after update the amplify sdk looks like has a bad state a non-auth state. In our project after we initialize the amplify sdk, the session expired was controled by the SessionExpiredException and by the auth hub(AuthChannelEventName.SESSION_EXPIRED).

After update, the sdk is in non-auth state(exacly like a fresh install), we don't get any SessionExpiredException or a hub event with AuthChannelEventName.SESSION_EXPIRED and we can not logout our users to force them do re sign in.

All our sign out mechanism was based on that exception and hub event.

Reproduction steps (if applicable)

  1. Use amplify 2.30.1 and do sign in.
  2. Update to 2.30.3 and start the app.
  3. After step 2 the sdk is in non-auth state.

Code Snippet

// Put your code below this line.

Log output

// Put your logs below this line


Configuration File

No response

GraphQL Schema

// Put your schema below this line

Additional information and screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    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