Skip to content

Commit db83f93

Browse files
committed
initial send password reset email api
1 parent ef1bbed commit db83f93

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

firebase-auth-rest/core/src/main/java/com/anotherdev/firebase/auth/rest/api/IdentityToolkitApi.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import com.anotherdev.firebase.auth.UserProfileChangeRequest;
55
import com.anotherdev.firebase.auth.UserProfileChangeResponse;
66
import com.anotherdev.firebase.auth.rest.api.model.IdTokenRequest;
7+
import com.anotherdev.firebase.auth.rest.api.model.SendPasswordResetEmailRequest;
78
import com.anotherdev.firebase.auth.rest.api.model.SignInRequest;
89
import com.anotherdev.firebase.auth.rest.api.model.SignInWithCustomTokenRequest;
910
import com.anotherdev.firebase.auth.rest.api.model.SignInWithEmailPasswordRequest;
@@ -36,6 +37,10 @@ public interface IdentityToolkitApi {
3637
@POST("v1/accounts:signInWithCustomToken")
3738
Single<SignInResponse> signInWithCustomToken(@Body SignInWithCustomTokenRequest request);
3839

40+
// FIXME refactor to proper return type
41+
@POST("v1/accounts:sendOobCode")
42+
Single<JsonObject> sendPasswordResetEmail(@Body SendPasswordResetEmailRequest request);
43+
3944
@POST("v1/accounts:lookup")
4045
Single<JsonObject> getAccounts(@Body IdTokenRequest request);
4146

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package com.anotherdev.firebase.auth.rest.api.model;
2+
3+
public interface SendPasswordResetEmailRequest {
4+
}

0 commit comments

Comments
 (0)