From d59cfd4c353435fd91367d702d3fec89db8b3696 Mon Sep 17 00:00:00 2001 From: Yosh Date: Thu, 11 Oct 2018 19:54:03 +0200 Subject: [PATCH] [@types/react-native-auth0] add resetPassword definition (#29615) --- types/react-native-auth0/index.d.ts | 6 ++++++ types/react-native-auth0/react-native-auth0-tests.ts | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/types/react-native-auth0/index.d.ts b/types/react-native-auth0/index.d.ts index d6bd3e7cf1..7508386166 100644 --- a/types/react-native-auth0/index.d.ts +++ b/types/react-native-auth0/index.d.ts @@ -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; refreshToken(params: RefreshTokenParams): Promise; + resetPassword(params: ResetPasswordParams): Promise; revoke(params: RevokeParams): Promise; userInfo(params: UserInfoParams): Promise; } diff --git a/types/react-native-auth0/react-native-auth0-tests.ts b/types/react-native-auth0/react-native-auth0-tests.ts index 068833e349..8a10d5d2b6 100644 --- a/types/react-native-auth0/react-native-auth0-tests.ts +++ b/types/react-native-auth0/react-native-auth0-tests.ts @@ -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" });