Passing my own state doesn't work with openid scope

Please include the following information in your post:

  • **auth0-node
  • **SDK Version:**1.4.0
  • Platform Version: e.g. Node v12.13.0
  • Code Snippets/Error Messages/Supporting Details/Screenshots:

Is this a feature request or bug report? If so, please create an issue directly in the corresponding GitHub repo. The Community SDK category is for general discussion and support.

This document explains how to manage your own state #40

HOWEVER!!! It is not working as described. The issue is that we have to set state = false in strategy configuration.
If we do that then,

router.get('/login', (req, res, next) => { const authenticator = passport.authenticate('auth0', { scope: 'openid email profile', state: 'custom' }) authenticator(req, res, next) });

throws an error Scope "openid" is not allowed without Auth0Strategy state true .
How do I pass my own state then and have openid scope at the same time?