createAccountBasic method

Future createAccountBasic(
  1. String username,
  2. String password,
  3. bool login,
  4. AccountParams? params,
)

Create user with 'basic' authentication scheme and immediately use it for authentication. Wrapper for createAccount

Implementation

Future createAccountBasic(
    String username, String password, bool login, AccountParams? params) {
  var secret = base64.encode(utf8.encode(username + ':' + password));
  return createAccount('basic', secret, login, params);
}