diff --git a/types/react-native-auth0/index.d.ts b/types/react-native-auth0/index.d.ts index 2e589932fa..e0273b76dc 100644 --- a/types/react-native-auth0/index.d.ts +++ b/types/react-native-auth0/index.d.ts @@ -76,7 +76,7 @@ export interface ResetPasswordParams { connection: string; } -export type UserInfo = { +export type UserInfo = { email: string; emailVerified: boolean; name: string; @@ -84,9 +84,7 @@ export type UserInfo = { picture: string; sub: string; updatedAt: string; -} & { - [key: string]: string; -}; +} & CustomClaims export class Auth { authorizationUrl(params: AuthorizationUrlParams): string; @@ -99,7 +97,7 @@ export class Auth { refreshToken(params: RefreshTokenParams): Promise; resetPassword(params: ResetPasswordParams): Promise; revoke(params: RevokeParams): Promise; - userInfo(params: UserInfoParams): Promise; + userInfo(params: UserInfoParams): Promise>; } /**