Merge pull request #32196 from ianhowe76/master

feat(auth0): Update UserMetadata to have any type for value
This commit is contained in:
Ron Buckton
2019-01-17 17:19:17 -08:00
committed by GitHub
2 changed files with 14 additions and 3 deletions
+11 -1
View File
@@ -147,11 +147,21 @@ management
management
.updateUser({id: "user_id"}, {"email": "hi@me.co"}, (err: Error, users: auth0.User) => {});
// Update user metadata
management
.updateUserMetadata({id: "user_id"}, {"key": "value"});
// Update user metadata with JSON object
management
.updateUserMetadata({id: "user_id"}, {
key: "value",
numKey: 123,
objKey: {
foo: "bar",
another: "value"
}
});
// Update user metadata using callback
management
.updateUserMetadata({id: "user_id"}, {"key": "value"}, (err: Error, users: auth0.User) => {});
+3 -2
View File
@@ -1,6 +1,7 @@
// Type definitions for auth0 2.9.2
// Type definitions for auth0 2.9.3
// Project: https://github.com/auth0/node-auth0
// Definitions by: Seth Westphal <https://github.com/westy92>
// Ian Howe <https://github.com/ianhowe76>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
@@ -32,7 +33,7 @@ export interface RetryOptions {
}
export interface UserMetadata {
[propName: string]: string
[propName: string]: any
}
export interface AppMetadata {