mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 23:07:06 +00:00
[@types/react-native-auth0] add resetPassword definition (#29615)
This commit is contained in:
Vendored
+6
@@ -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"
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user