diff --git a/types/react-native-auth0/index.d.ts b/types/react-native-auth0/index.d.ts index 7508386166..e738cf69b3 100644 --- a/types/react-native-auth0/index.d.ts +++ b/types/react-native-auth0/index.d.ts @@ -1,6 +1,7 @@ -// Type definitions for react-native-auth0 1.2 +// Type definitions for react-native-auth0 1.3 // Project: https://github.com/auth0/react-native-auth0 // Definitions by: Andrea Ascari +// Mark Nelissen // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 @@ -75,7 +76,7 @@ export interface ResetPasswordParams { connection: string; } -export interface UserInfo { +export type UserInfo = { email: string; emailVerified: boolean; name: string; @@ -83,7 +84,8 @@ export interface UserInfo { picture: string; sub: string; updatedAt: string; -} +} & CustomClaims; + export class Auth { authorizationUrl(params: AuthorizationUrlParams): string; /* tslint:disable-next-line no-unnecessary-generics */ @@ -91,11 +93,11 @@ export class Auth { exchange(params: ExchangeParams): Promise; logoutUrl(params: LogoutParams): string; passwordRealm(params: PasswordRealmParams): Promise; - refreshToken(params: RefreshTokenParams): Promise; resetPassword(params: ResetPasswordParams): Promise; revoke(params: RevokeParams): Promise; - userInfo(params: UserInfoParams): Promise; + /* tslint:disable-next-line no-unnecessary-generics */ + userInfo(params: UserInfoParams): Promise>; } /**