getCredentialsItemMap method

Map<String, dynamic> getCredentialsItemMap({
  1. required String userName,
  2. required String hashedPassword,
})

Returns a map containing credentials for API calls.

This method is used to generate a map that contains the login identifier and hashed password, along with the authentication token.

  • userName: The user's login identifier (e.g., username or email).
  • hashedPassword: The user's hashed password.

Returns a Map<String, dynamic> with credentials for API calls.

Implementation

Map<String, dynamic> getCredentialsItemMap({
  required String userName,
  required String hashedPassword,
}) {
  return {
    'token': kAuthentication_apiToken,
    'userName': userName,
    'hashedPassword': hashedPassword,
  };
}