Skip to content

Commit 3980301

Browse files
committed
Domain sync
1 parent 8803d91 commit 3980301

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/FusionAuthClient.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4780,6 +4780,22 @@ export class FusionAuthClient {
47804780
.go();
47814781
}
47824782

4783+
/**
4784+
* Administratively verify a user's email address. Use this method to bypass email verification for the user.
4785+
*
4786+
* The request body will contain the userId to be verified. An API key is required when sending the userId in the request body.
4787+
*
4788+
* @param {VerifyEmailRequest} request The request that contains the userId to verify.
4789+
* @returns {Promise<ClientResponse<void>>}
4790+
*/
4791+
verifyEmailAddressByUserId(request: VerifyEmailRequest): Promise<ClientResponse<void>> {
4792+
return this.start<void, Errors>()
4793+
.withUri('/api/user/verify-email')
4794+
.withJSONBody(request)
4795+
.withMethod("POST")
4796+
.go();
4797+
}
4798+
47834799
/**
47844800
* Confirms an application registration. The Id given is usually from an email sent to the user.
47854801
*
@@ -9979,6 +9995,7 @@ export enum VerificationStrategy {
99799995
*/
99809996
export interface VerifyEmailRequest extends BaseEventRequest {
99819997
oneTimeCode?: string;
9998+
userId?: UUID;
99829999
verificationId?: string;
998310000
}
998410001

0 commit comments

Comments
 (0)