File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff 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 */
99809996export interface VerifyEmailRequest extends BaseEventRequest {
99819997 oneTimeCode ?: string ;
9998+ userId ?: UUID ;
99829999 verificationId ?: string ;
998310000}
998410001
You can’t perform that action at this time.
0 commit comments