Cannot read properties of undefined (reading 'isAuthenticated')

Cannot read properties of undefined (reading ‘isAuthenticated’)
Getting this error while integrating Auth0 with Nodejs application