Fix: Auth0 'profie is not defined' error happend


When I created OpenID Connect client on Auth0, I faced to the error below:

{
  "error": "invalid_request",
  "error_description": "profie is not defined"
}

But I realize solution about it.

This error's cause is 'default Fetch User Profile Script'.

default is below:

function(accessToken, ctx, cb) {
  cb(null, profie);
}

In the function, 'profile' is not defined, so the error is occurred.

The solution is to write exact 'Fetch User Profile Script'.