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" });