# How to set the field verify\_email as false when using passport-auth0

**URL:** <https://community.auth0.com/t/how-to-set-the-field-verify-email-as-false-when-using-passport-auth0/8772>\
**Category:** Get Help\
**Tags:** create-user, email-verification, verification-email\
**Created:** [November 18, 2017, 5:43am UTC](https://community.auth0.com/t/how-to-set-the-field-verify-email-as-false-when-using-passport-auth0/8772 "2017-11-18T05:43:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rbadri01](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@rbadri01](https://community.auth0.com/u/rbadri01)\
**Post date:** [November 18, 2017, 5:43am UTC](https://community.auth0.com/t/how-to-set-the-field-verify-email-as-false-when-using-passport-auth0/8772/1 "2017-11-18T05:43:46Z")

</div>

I am trying to create a user using passport-auth0 Node.js library. I want to send the customised verification email after sometime via an API call. I have seen example wherein it was demonstrated about how to set verify\_email as false by creating users using Auth0 Management API /api/v2/users. I would like to know how to achieve the same using the passport auth0 strategy.

I have the following middleware when the user signs up

```
passport.authenticate('auth0', {
        clientID: process.env.AUTH0_CLIENT_ID,
        domain: process.env.AUTH0_DOMAIN,
        redirectUri: 'http://localhost:5000/callback/',
        responseType: 'code',
        audience: 'https://' + process.env.AUTH0_DOMAIN + '/userinfo',
        scope: 'openid profile email'
    }).

```

I would like to know how to set the verify\_email key as false for the newly created user. Can it be done only after authentication or is there any extra field that can be set to the middleware shown above??

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [November 21, 2017, 9:08pm UTC](https://community.auth0.com/t/how-to-set-the-field-verify-email-as-false-when-using-passport-auth0/8772/2 "2017-11-21T21:08:21Z")

</div>

The `verify_email`option is only available through the create user endpoint of the Auth0 Management API v2 so what you’re trying to accomplish is not available through the passport strategy which just redirects the end-user when there is not an active authentication session. the strategy by itself does not care if completion of the authentication will be made by first signing up for a new account or just by providing credentials associated with an existing account.

In conclusion, if you want that level of control you would need to creates users through that endpoint instead of the public signup endpoint used when end-users sign-up through Lock, for example.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 2, 2018, 5:57am UTC](https://community.auth0.com/t/how-to-set-the-field-verify-email-as-false-when-using-passport-auth0/8772/3 "2018-03-02T05:57:27Z")

</div>


