Error: "Cannot convert undefined or null to object" when Attempting to Sign In

Overview

Users cannot log in due to the error: 

Cannot convert undefined or null to object

This error can be found on the auth0 dashboard logs. 

Cause

This error is a javascript error, and it is likely to be produced in one of the extensibility points. For this, please check the customizations at: 

  • Actions
  • Rules
  • Hooks
  • Custom database scripts

Solution

This error points towards a variable in the code that is "undefined" or null. Also, it indicates that the code is being used to convert it to an object. For example, a code like this would raise this particular javascript error: 

Object.entries(undefinedOrNullVariable).reduce(.....)

Recommended content

No recommended content found...