You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need to call the confirmSignUp api but there is no public method exposing this property and the value of it is hardcoded to false. Can we expose a method to have the ability to set this to true.
@zerox92 I'm a bit confused here. The method linked is public and takes in a forcedAliasCreation boolean. There is no default set? Are you referring to Amplify not being able to set forcedAliasCreation?
I understand that you may have been trying to get to this method from AWSMobileClient, which does not expose its created userpool. You should be able to directly hit this method using a snippet as shown below.
Note: If your awsconfiguration.json file is not stored in the default location, you would have to customize how AWSConfiguration is instantiated.
// Snippet should be run on a worker thread, otherwise you will get networking on main thread exception
val userpool = CognitoUserPool(this, AWSConfiguration(this))
userpool.getUser("username").confirmSignUp(
"challengeResponse",
true,
clientMetadata,
object : GenericHandler {
override fun onSuccess() {
// handle success
}
override fun onFailure(exception: Exception) {
// handle failure
}
}
)
We need to call the
confirmSignUp
api but there is no public method exposing this property and the value of it is hardcoded tofalse
. Can we expose a method to have the ability to set this totrue
.aws-sdk-android/aws-android-sdk-cognitoidentityprovider/src/main/java/com/amazonaws/mobileconnectors/cognitoidentityprovider/CognitoUser.java
Line 300 in 9134f0b
The text was updated successfully, but these errors were encountered: