|
@@ -13,24 +13,18 @@ interface AuthService {
|
|
|
@POST("sign_in")
|
|
|
fun signIn(
|
|
|
@Query("email") email: String,
|
|
|
- @Query("password") password: String,
|
|
|
- @Query("client_id") clientId: String,
|
|
|
- @Query("client_secret") clientSecret: String
|
|
|
+ @Query("password") password: String
|
|
|
): Observable<SignInData>
|
|
|
|
|
|
@POST("sign_up")
|
|
|
fun signUp(
|
|
|
@Query("email") email: String,
|
|
|
@Query("password") password: String,
|
|
|
- @Query("client_id") clientId: String,
|
|
|
- @Query("client_secret") clientSecret: String,
|
|
|
@Query("name") name: String
|
|
|
): Observable<SignUpData>
|
|
|
|
|
|
@POST("through_omniauth")
|
|
|
fun throughOmniAuth(
|
|
|
- @Query("client_id") clientId: String,
|
|
|
- @Query("client_secret") clientSecret: String,
|
|
|
@Query("provider") provider: String,
|
|
|
@Query("omniauth_toke") omniAuthToken: String,
|
|
|
@Query("omniauth_secret") omniAuthSecret: String,
|
|
@@ -40,16 +34,12 @@ interface AuthService {
|
|
|
|
|
|
@POST("reset_password")
|
|
|
fun resetPassword(
|
|
|
- @Query("email") email: String,
|
|
|
- @Query("client_id") clientId: String,
|
|
|
- @Query("client_secret") clientSecret: String
|
|
|
+ @Query("email") email: String
|
|
|
): Observable<ResetPasswordData>
|
|
|
|
|
|
@POST("resend_confirmation")
|
|
|
fun resendConfirmation(
|
|
|
@Query("email") email: String,
|
|
|
- @Query("password") password: String,
|
|
|
- @Query("client_id") clientId: String,
|
|
|
- @Query("client_secret") clientSecret: String
|
|
|
+ @Query("password") password: String
|
|
|
): Observable<ResendConfirmationData>
|
|
|
}
|