-
Notifications
You must be signed in to change notification settings - Fork 119
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
Could not receive token from additionalInfo{} when calling signInWithWebUi
method after migrated to amplify v2
#2581
Comments
Hi @arvelalanaidn we'll take a look and get back to you soon. |
@arvelalanaidn This is the intended behaviour in V2. Please see this document for information about how to access the user's token. The code you want will look something like: // Using coroutines
val session = Amplify.Auth.fetchAuthSession() as AWSCognitoAuthSession
val token = session.accessToken Please let us know if you have any other questions. |
@mattcreaser Hi, I have used that code for accessToken, but my
Any instructions on how to properly log out and get an IdToken after logging out and logging in again? Because my IdToken is always null after trying to log out then immediately log in using this code.
|
Just to confirm, your I created a clean |
@tylerjroach yes
did you try logging in immediately after logging out? SignOut
SignIn
Fetch
|
I see that you said yes, but in the latest post, your PoolId still just shows the region. A PoolId contains more than just a region. I understand that you may have just removed the additional characters to obfuscate the PoolId, but just to make sure it is understood, your user pool config should look more like this.
|
Hey there! We haven't heard back on this so we'll close this issue. Please feel free to open a new issue if needed. |
This issue is now closed. Comments on closed issues are hard for our team to see. |
Before opening, please confirm:
Language and Async Model
Kotlin
Amplify Categories
Authentication
Gradle script dependencies
Environment information
Please include any relevant guides or documentation you're referencing
https://docs.amplify.aws/lib/auth/signin_web_ui/q/platform/android/#configure-auth-category
Describe the bug
Hi,
After I migrated to amplify v2 from v1, I could not receive token from
additionalInfo{}
response when callingsignInWithWebUi
method, this is my response before and after migrating to v2.My
signInWithWebUi
Implementationamplify version 2.13.0 response:
signInStep=DONE, additionalInfo={}, codeDeliveryDetails=null
amplify version 1.37.3 response:
signInStep=DONE, additionalInfo={provider=cognito-idp.ap-southeast-1.amazonaws.com/ap-southeast-1_60Qu63nZM, token=eyJraWQiOiJ4R3lqTmdNK3JBZlRQc2VwczVhe....}, codeDeliveryDetails=null
Any instructions on how to get token from Amplify v2?
Reproduction steps (if applicable)
Code Snippet
Log output
amplifyconfiguration.json
GraphQL Schema
Additional information and screenshots
No response
The text was updated successfully, but these errors were encountered: