Functions - auth

extractUsernameAndPassword

Extracts the username and password from the credential values.

extractUsernameAndPassword

(string credential)

returns [string, string] | error

Extracts the username and password from the credential values.

Parameters

  • credential string
  • The credential values.

  • Return Type

    ([string, string] | error)
  • A string tuple with the extracted username and password or error occurred while extracting credentials