registerWithEmail method
Implementation
Future<bool> registerWithEmail(EmailRegisterRequest request) async {
state = state.copyWith(status: AuthStatus.authenticating, error: null);
try {
final tokens = await _authService.register(request.toJson());
await _applyTokens(tokens);
return true;
} on DioException catch (e) {
_handleError(e);
return false;
}
}