register method
Register a new user.
Returns the AuthResponse. Check AuthResponse.success and AuthResponse.errorCode to determine the outcome:
| errorCode | Meaning |
|---|---|
| 0 | Success |
| 3 | Email already registered |
| -1 | Other error |
Implementation
Future<AuthResponse> register(String email, String password) async {
final request = RegisterRequest()
..email = email
..password = password;
return await _stub.register(request);
}