Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot cancel sign-in flow #2604

Closed
1 task done
bayo-code opened this issue Oct 10, 2023 · 4 comments
Closed
1 task done

Cannot cancel sign-in flow #2604

bayo-code opened this issue Oct 10, 2023 · 4 comments
Labels
auth Related to the Auth category/plugins closing soon This issue will be closed in 7 days unless further comments are made. not-reproducible Not able to reproduce the issue question General question

Comments

@bayo-code
Copy link

Before opening, please confirm:

Language and Async Model

Kotlin - Coroutines

Amplify Categories

Authentication

Gradle script dependencies

// Put output below this line
def amplify_version = "2.13.2"
implementation "com.amplifyframework:core-kotlin:$amplify_version"
implementation "com.amplifyframework:aws-api:$amplify_version"
implementation "com.amplifyframework:aws-auth-cognito:$amplify_version"
implementation "com.amplifyframework:aws-storage-s3:$amplify_version"

Environment information

# Put output below this line

------------------------------------------------------------
Gradle 7.5
------------------------------------------------------------

Build time:   2022-07-14 12:48:15 UTC
Revision:     c7db7b958189ad2b0c1472b6fe663e6d654a5103

Kotlin:       1.6.21
Groovy:       3.0.10
Ant:          Apache Ant(TM) version 1.10.11 compiled on July 10 2021
JVM:          17.0.7 (JetBrains s.r.o. 17.0.7+7-b964.1)
OS:           Mac OS X 14.0 aarch64

Please include any relevant guides or documentation you're referencing

No response

Describe the bug

After calling Amplify.Auth.signIn(email) and transitioned to the SigningIn state where the user is supposed to enter a token, I am not able to cancel the sign in flow so I can re-authenticate with other credentials.

I always get Auth state is an invalid state, cannot process the request.. Is there a way to cancel the current sign in flow so I can restart?

Reproduction steps (if applicable)

No response

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

No response

@tjleing tjleing added bug Something isn't working auth Related to the Auth category/plugins question General question and removed bug Something isn't working labels Oct 10, 2023
@gpanshu
Copy link
Contributor

gpanshu commented Oct 11, 2023

Hi @bayo-code can you add the debug logs and provide the logs for states. You can add Amplify.addPlugin(AndroidLoggingPlugin(LogLevel.VERBOSE)) as one of your plugins for debugging locally as the first plugin in your application class. Please also advise what sign in authFlow method you are using?

@gpanshu gpanshu added the not-reproducible Not able to reproduce the issue label Oct 16, 2023
@gpanshu gpanshu added the closing soon This issue will be closed in 7 days unless further comments are made. label Oct 23, 2023
@gpanshu
Copy link
Contributor

gpanshu commented Oct 30, 2023

Closing due to inactivity. Please feel free to comment here or create a new issue if you are still facing an issue.

@gpanshu gpanshu closed this as completed Oct 30, 2023
@github-actions
Copy link
Contributor

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

@tylerjroach
Copy link
Member

@bayo-code I apologize that this ticket was ever closed. This was a legitimate bug report. This issue has been fixed with Amplify v2.25.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auth Related to the Auth category/plugins closing soon This issue will be closed in 7 days unless further comments are made. not-reproducible Not able to reproduce the issue question General question
Projects
None yet
Development

No branches or pull requests

4 participants