Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot read property 'map' of undefined #16

Open
sopeters opened this issue Feb 15, 2019 · 2 comments
Open

TypeError: Cannot read property 'map' of undefined #16

sopeters opened this issue Feb 15, 2019 · 2 comments

Comments

@sopeters
Copy link

sopeters commented Feb 15, 2019

Hi,

I'm getting

"TypeError: Cannot read property 'map' of undefined"

auth0-multitenant-website/routes/tenant.js:11

Could this be because the PORT isn't included?

var groups = req.user._json[http://${process.env.ROOT_DOMAIN}/claims/groups]
should it be
var groups = req.user._json[http://${process.env.ROOT_DOMAIN}:${process.env.PORT}/claims/groups]

@sopeters sopeters changed the title Callback URL not valid TypeError: Cannot read property 'map' of undefined Feb 15, 2019
@sopeters sopeters reopened this Feb 15, 2019
@sopeters
Copy link
Author

Seems to work if I modify

routes/user.js
routes/tenant.js
lib/tenant.js

to include ${process.env.PORT} in the URLs.

@dorazouri
Copy link

Seems to work if I modify

routes/user.js
routes/tenant.js
lib/tenant.js

to include ${process.env.PORT} in the URLs.

Had the same error and solved it in the same way.
Wish I had seen this issue thread earlier :P
Thanks @sopeters

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants