Skip to content

Commit

Permalink
Workaround colon issue causing malformed url. square/retrofit#3080
Browse files Browse the repository at this point in the history
  • Loading branch information
anotherdev committed Mar 19, 2020
1 parent 6cb239a commit ae4b6a2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
package com.anotherdev.firebase.auth.rest.api;

import com.anotherdev.firebase.auth.rest.api.model.SignInAnonymouslyRequest;
import com.anotherdev.firebase.auth.rest.api.model.SignInAnonymouslyResponse;

import io.reactivex.rxjava3.core.Single;
import retrofit2.http.Body;
import retrofit2.http.POST;

public interface IdentityToolkitApi {

String BASE_URL = "https://identitytoolkit.googleapis.com/v1/";
// Workaround colon issue. https://github.com/square/retrofit/issues/3080
String BASE_URL = "https://identitytoolkit.googleapis.com/";


@POST("v1/accounts:signUp")
Single<SignInAnonymouslyResponse> signInAnonymously(@Body SignInAnonymouslyRequest request);
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@

public interface SecureTokenApi {

String BASE_URL = "https://securetoken.googleapis.com//v1/";
// Workaround colon issue. https://github.com/square/retrofit/issues/3080
String BASE_URL = "https://securetoken.googleapis.com/";
}

0 comments on commit ae4b6a2

Please sign in to comment.