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 {
4780
4780
. go ( ) ;
4781
4781
}
4782
4782
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
+
4783
4799
/**
4784
4800
* Confirms an application registration. The Id given is usually from an email sent to the user.
4785
4801
*
@@ -9979,6 +9995,7 @@ export enum VerificationStrategy {
9979
9995
*/
9980
9996
export interface VerifyEmailRequest extends BaseEventRequest {
9981
9997
oneTimeCode ?: string ;
9998
+ userId ?: UUID ;
9982
9999
verificationId ?: string ;
9983
10000
}
9984
10001
You can’t perform that action at this time.
0 commit comments