forcedotcom / SalesforceMobileSDK-Templates

BSD 3-Clause "New" or "Revised" License
52 stars 56 forks source link

Enabling Passwordless Login in Salesforce Mobile SDK #419

Closed Dev-Pradeep-NS closed 1 month ago

Dev-Pradeep-NS commented 1 month ago

I am currently working on a mobile application using the Salesforce Mobile SDK and would like to implement passwordless login for enhanced user experience and security.

Could you please provide guidance or documentation on how to enable passwordless login within the Salesforce Mobile SDK? Specifically, I am interested in the following:

  1. Steps to configure passwordless login in the Salesforce environment.
  2. Necessary changes or configurations in the mobile SDK to support passwordless login.
  3. Any sample code or examples that illustrate the implementation process.
  4. Best practices and considerations for securing passwordless authentication.

Thank you in advance for your assistance!

brandonpage commented 1 month ago

Note: Native/Passwordless login is only supported for Experience Cloud users at this time.

Documentation: https://developer.salesforce.com/docs/platform/mobile-sdk/guide/native-login-passwordless.html

To generate an app to start from you can use our forcedroid or focrceios CLIs. (e.g. forcedroid createwithtemplate --templaterepouri=AndroidNativeLoginTemplate). The sample code for these temples is in this repo (android, ios).

Dev-Pradeep-NS commented 1 month ago

What about forcereact application?

Dev-Pradeep-NS commented 1 month ago

Note: Native/Passwordless login is only supported for Experience Cloud users at this time.

Documentation: https://developer.salesforce.com/docs/platform/mobile-sdk/guide/native-login-passwordless.html

To generate an app to start from you can use our forcedroid or focrceios CLIs. (e.g. forcedroid createwithtemplate --templaterepouri=AndroidNativeLoginTemplate). The sample code for these temples is in this repo (android, ios).

What can I do for react native app

brandonpage commented 1 month ago

I am not aware of anything preventing you from using our Native Login feature I mentioned above in a React Native app. You will unfortunately need to create login screens in native Android and iOS code (not Javascript/Typescript). We do not have any plans to bring the feature to React Native at this time.