Skip to content

Commit

Permalink
Renamed type to provider in login & signup request
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaison Titus committed Oct 21, 2017
1 parent af77f55 commit f8ddc65
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package io.hasura.sdk.authProvider;

import io.hasura.sdk.HasuraUser;

/**
* Created by jaison on 06/09/17.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public AnonymousApiService(String baseUrl, OkHttpClient httpClient) {

public Call<AuthResponse, HasuraException> signUp(HasuraAuthProvider authProvider) {
JsonObject rootObject = new JsonObject();
rootObject.addProperty("type", authProvider.getProviderType());
rootObject.addProperty("provider", authProvider.getProviderType());
JsonElement dataElement = new Gson().toJsonTree(authProvider.getDataObject());
rootObject.add("data", dataElement);
String jsonBody = gson.toJson(rootObject);
Expand All @@ -36,7 +36,7 @@ public Call<AuthResponse, HasuraException> signUp(HasuraAuthProvider authProvide

public Call<AuthResponse, HasuraException> login(HasuraAuthProvider authProvider) {
JsonObject rootObject = new JsonObject();
rootObject.addProperty("type", authProvider.getProviderType());
rootObject.addProperty("provider", authProvider.getProviderType());
JsonElement dataElement = new Gson().toJsonTree(authProvider.getDataObject());
rootObject.add("data", dataElement);
String jsonBody = gson.toJson(rootObject);
Expand Down

0 comments on commit f8ddc65

Please sign in to comment.