forcedotcom / SalesforceMobileSDK-ReactNative

BSD 3-Clause "New" or "Revised" License
49 stars 55 forks source link

React Native Salesforce SDK login callback not received Android/iOS #352

Closed vinod1988 closed 5 months ago

vinod1988 commented 9 months ago

Hi Team I am using the latest version 11.1.0 of react native sdk. I am describing the issue below

Upon launching the app, the Salesforce login page is displayed. After entering the username and password, the app redirects to the authorization page, and although permission is granted, the expected callback is not invoked. I am using the below functions. This is sample refe code given by the salesforce template app example

oauth.getAuthCredentials(
  () => that.fetchData(), // Callback for an already logged-in user
  () => {
    oauth.authenticate(
      () => that.fetchData(), // Callback upon successful authentication
      (error) => console.log('Failed to authenticate:' + error)
    );
  }
);

Please help me, where i am doing the mistakes

musarratbare commented 8 months ago

Hi @vinod1988 ,

I am facing the same issue. Can you please share your workaround have researched a lot on this and I am going nowhere.

wmathurin commented 5 months ago

This is a duplicate of https://github.com/forcedotcom/SalesforceMobileSDK-ReactNative/issues/247.