amazon-archives / aws-sdk-react-native

AWS SDK for React Native (developer preview)
Apache License 2.0
631 stars 62 forks source link

Developer authenticated identies #17

Open jatsrt opened 7 years ago

jatsrt commented 7 years ago

As far as I can tell this is not currently supported. Not too sure how this could work with the current setup.

let logins = {};
logins['cusom.provider.id'] = serverResponse.Token;
AWSCognitoCredentials.setLogin(logins)

Errors with: "Please provide a valid public provider"

Is this a workflow that could be supported, it doesn't seem to make sense to offload the authentication to a custom provider in native code for each platform.

The JS code makes the request and gets a valid IdentityId and Token, but doesn't seem to be a native way to then set that.

damathryx commented 7 years ago

+1

mtomic commented 7 years ago

+1