generatePassword method

String generatePassword()

Implementation

String generatePassword() {
  var values =
      List<int>.generate(PASSWORD_LENGTH, (i) => _random.nextInt(256));
  return base64Url.encode(values).substring(0, PASSWORD_LENGTH);
}