Closed JurajBegovac closed 1 year ago
Thank you for your report. Someone on our team will take a look.
Hi there, For the Cognito setup, did you select CUSTOM_AUTH_WITH_SRP or CUSTOM_AUTH_WITHOUT_SRP?
We use "CUSTOM_AUTH_FLOW_ONLY" so I guess it's "CUSTOM_AUTH_WITHOUT_SRP"
Hi @JurajBegovac
Can you change your authentication flow type to CUSTOM_AUTH_WITHOUT_SRP or use the signIn(username, password, options)
as mentioned here)
And please make sure you call fetchAuthSession or any other api before your token expires. Please reply here if this helps and if it doesn't, we will investigate further.
Please ensure you are using the right authFlowType because CUSTOM_AUTH_WITHOUT_SRP does not have SRP as the first step and CUSTOM_AUTH_WITHOUT_SRP does not need passsword.
@banji180 Hi, in the meantime we changed auth flow so I guess this is now oboslete
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.
Before opening, please confirm:
Language and Async Model
Kotlin, Kotlin - Coroutines
Amplify Categories
Authentication
Gradle script dependencies
Environment information
Please include any relevant guides or documentation you're referencing
No response
Describe the bug
Confirming SMS code is not working when using CUSTOM_AUTH as authenticationFlowType.
Not working on 2.0.0 - working on 1.37.7
Basically, I manage to confirm the SMS code but then after the access token expires Cognito session treats user as signedOut ?!
This is our use case:
3.Call confirm
And everything works - I get the token - but once the accessToken expires I don't get any new accessToken (like in older version) - then I'm getting some signout exception
AWS configuration:
Reproduction steps (if applicable)
No response
Code Snippet
Log output
amplifyconfiguration.json
No response
GraphQL Schema
Additional information and screenshots
I'm working on KMM project where I have interface/protocol inside shared module and implementations on iOS and Android side. I also opened swift issue because on iOS I cannot even pass the third step https://github.com/aws-amplify/amplify-swift/issues/2608