extraParams.id_token does *not* contain JWT

I’m trying to implement auth0 authentication in my node app using passport. In the docs (here) it says that extraParams.id_token should have the resulting JWT token. However, for me, it does not. It is imply undefined.

These are the variables I have

accessToken <access_token>
refreshToken undefined
extraParams {
    access_token: '<access_token>',
    expires_in: 86400,
    token_type: 'Bearer'

Any ideas?

I found the solution. I needed to add the audience and scope fields

passport.authenticate('auth0', {
    responseType: 'id_token',
    audience: 'https://<your_account>.auth0.com/api/v2/',
    scope: 'openid profile user',