mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
[auth0] New fields in PasswordChangeTicketParams (#36892)
* Issue 36108 Added two fields to `PasswordChangeTicketParams` and edited tests accordingly. * Issue 36108 Increased patch version
This commit is contained in:
parent
b5a2d2a412
commit
9bfb0f9df9
@ -277,15 +277,20 @@ const retryableManagementClient = new auth0.ManagementClient({
|
||||
}
|
||||
});
|
||||
|
||||
management.createPasswordChangeTicket({
|
||||
connection_id: 'con_id',
|
||||
email: 'test@me.co',
|
||||
new_password: 'password',
|
||||
result_url: 'https://www.google.com/',
|
||||
ttl_sec: 86400,
|
||||
}, (err: Error, data) => {
|
||||
console.log(data.ticket);
|
||||
});
|
||||
management.createPasswordChangeTicket(
|
||||
{
|
||||
connection_id: 'con_id',
|
||||
email: 'test@me.co',
|
||||
new_password: 'password',
|
||||
result_url: 'https://www.google.com/',
|
||||
ttl_sec: 86400,
|
||||
mark_email_as_verified: true,
|
||||
includeEmailInRedirect: true,
|
||||
},
|
||||
(err: Error, data) => {
|
||||
console.log(data.ticket);
|
||||
}
|
||||
);
|
||||
|
||||
// Link users
|
||||
management.linkUsers('primaryId', { user_id: 'secondaryId' })
|
||||
|
||||
16
types/auth0/index.d.ts
vendored
16
types/auth0/index.d.ts
vendored
@ -1,4 +1,4 @@
|
||||
// Type definitions for auth0 2.9.3
|
||||
// Type definitions for auth0 2.9.4
|
||||
// Project: https://github.com/auth0/node-auth0
|
||||
// Definitions by: Seth Westphal <https://github.com/westy92>
|
||||
// Ian Howe <https://github.com/ianhowe76>
|
||||
@ -686,12 +686,14 @@ export interface ExportUserField {
|
||||
}
|
||||
|
||||
export interface PasswordChangeTicketParams {
|
||||
result_url?: string;
|
||||
user_id?: string;
|
||||
new_password?: string;
|
||||
connection_id?: string;
|
||||
email?: string;
|
||||
ttl_sec?: number;
|
||||
result_url?: string;
|
||||
user_id?: string;
|
||||
new_password?: string;
|
||||
connection_id?: string;
|
||||
email?: string;
|
||||
ttl_sec?: number;
|
||||
mark_email_as_verified?: boolean;
|
||||
includeEmailInRedirect?: boolean;
|
||||
}
|
||||
|
||||
export interface PasswordChangeTicketResponse {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user