public async Task <RestResponse <OAuthData> > RegisterAsync(CreateUserRequest request) { request.Header("Accept-Language", CultureInfo.CurrentCulture.TwoLetterISOLanguageName); var response = await request.ToResponseAsync(); if (response.IsSuccessStatusCode) { Login(response.DeserializedResponse.Username, response.DeserializedResponse.AccessToken); } return(response); }