From fb4f2f8b2e3ed81d692c88f91dca5e3267c468bd Mon Sep 17 00:00:00 2001 From: Peter <2554154+pwrnrd@users.noreply.github.com> Date: Fri, 19 Jul 2019 19:15:26 +0200 Subject: [PATCH] Auth0 - added fields to the UserData interface (#37000) --- types/auth0/auth0-tests.ts | 2 +- types/auth0/index.d.ts | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/types/auth0/auth0-tests.ts b/types/auth0/auth0-tests.ts index dad8ba9641..29563d3993 100644 --- a/types/auth0/auth0-tests.ts +++ b/types/auth0/auth0-tests.ts @@ -116,7 +116,7 @@ management // Link users management - .createUser({ connection: 'email', email: 'hi@me.co' }) + .createUser({ connection: 'email', email: 'hi@me.co', user_id: "my_id" }) .catch(err => console.error('Cannot create E-mail user', err)) .then((emailUser) => { if (!emailUser) return; diff --git a/types/auth0/index.d.ts b/types/auth0/index.d.ts index 1bfd6151a4..6796b4c782 100644 --- a/types/auth0/index.d.ts +++ b/types/auth0/index.d.ts @@ -4,6 +4,7 @@ // Ian Howe // Alex Bjørlig // Dan Rumney +// Peter // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 @@ -47,6 +48,10 @@ export interface UserData { username?: string; email_verified?: boolean; verify_email?: boolean; + user_id?: string; + blocked?: boolean; + nickname?: string; + picture?: string; password?: string; phone_number?: string; phone_verified?: boolean;