Auth0 - added fields to the UserData interface (#37000)

This commit is contained in:
Peter
2019-07-19 10:15:26 -07:00
committed by Andrew Branch
parent 8e5cd71233
commit fb4f2f8b2e
2 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -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;
+5
View File
@@ -4,6 +4,7 @@
// Ian Howe <https://github.com/ianhowe76>
// Alex Bjørlig <https://github.com/dauledk>
// Dan Rumney <https://github.com/dancrumb>
// Peter <https://github.com/pwrnrd>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
@@ -47,6 +48,10 @@ export interface UserData<A = AppMetadata, U=UserMetadata> {
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;