Aws-sdk-android: Getting UnsupportedOperationException when passing metadata in signIn

Created on 4 Aug 2020  路  4Comments  路  Source: aws-amplify/aws-sdk-android

Describe the bug
Hi guys. In the latest release the metada parameter is available in signIn method. When I try to use it, the following exception is thrown:

image

To Reproduce
val metadata = mapOf(Pair("key", "value")
AwsClient.instance().signIn("username", "password", null, metada, callback)

Which AWS service(s) are affected?
sdk-client

Expected behavior
exception shouldn't be thrown

Screenshots
NA

Environment Information (please complete the following information):

Additional context
NA

AWSMobileClient Bug

Most helpful comment

Hi @osugikoji thanks for the report. I am able to reproduce this. We will provide a fix.

All 4 comments

Hi @osugikoji thanks for the report. I am able to reproduce this. We will provide a fix.

Thank you so much! Do you know when this fix could be released?

Sorry for being impatient, but I have an important release to do at the end of this month and I really depend on this feature. Do you guys know any alternative way to trigger the post-authentication lamba in the sign-in method?

This fix will go in 2.17.1. ETA 3-7 days.

Was this page helpful?
0 / 5 - 0 ratings