Loading
Feature Disruption - Service Cloud VoiceRead More
Feature degradation | Gmail Email delivery failureRead More
Visual Studio Code Based Modeler for Consumer Goods Cloud
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          checkNetworkCredentialsAsync(userName, password)

          checkNetworkCredentialsAsync(userName, password)

          Facade.checkNetworkCredentialsAsync() is one of the KeyChain API methods for providing a secure key-value storage for framework users. This storage can be used to store any sensitive information, such as credentials for web-based authentication.

          Required Editions

          Available in Lightning Experience in Professional, Unlimited, and Enterprise Editions that have Consumer Goods Cloud enabled.

          checkNetworkCredentialsAsync() checks whether the given username and password are equal to the username and password saved in the KeyChain.

          Parameters

          • userName: The username to be checked; mandatory non-empty string.

          • password: The password of the given username to be checked; mandatory string.

          Returns

          • A promise

          Example

          Facade.checkNetworkCredentialsAsync('john', 'bYebYe').then(function (status) {
          // status: true if username & pass are equal to the one saved in the secure storage; false if username & pass are NOT equal to the one saved in the secure storage
          },
          function (err) { // failure
          // err - error object or error string
          });
           
          Loading
          Salesforce Help | Article