[@types/react-native-auth0] add resetPassword definition (#29615)

This commit is contained in:
Yosh
2018-10-11 10:54:03 -07:00
committed by Andy
parent dab682e6f8
commit d59cfd4c35
2 changed files with 11 additions and 0 deletions
+6
View File
@@ -70,6 +70,11 @@ export interface UserInfoParams {
token: string;
}
export interface ResetPasswordParams {
email: string;
connection: string;
}
export interface UserInfo {
email: string;
emailVerified: boolean;
@@ -88,6 +93,7 @@ export class Auth {
passwordRealm(params: PasswordRealmParams): Promise<PasswordRealmResponse>;
refreshToken(params: RefreshTokenParams): Promise<any>;
resetPassword(params: ResetPasswordParams): Promise<any>;
revoke(params: RevokeParams): Promise<any>;
userInfo(params: UserInfoParams): Promise<UserInfo>;
}
@@ -49,6 +49,11 @@ auth0.auth.refreshToken({
scope: "openid"
});
auth0.auth.resetPassword({
email: "me@example.com",
connection: "db-connection"
});
auth0.auth.revoke({
refreshToken: "refresh-token"
});