Auth0 Home Blog Docs

The Extra settings parameter should be a valid json object

wordpress
#1

I can’t seem to find a way to switch from emailing OTP code to magic link.

Tried setting this in extra settings advanced tab:

var options = {
passwordlessMethod: ‘link’
};

But getting this message:

The Extra settings parameter should be a valid json object

Thanks

#2

Hi @brkncoyot3 … that error message is saying that the settings field wants JSON but what you’re saving does not pass validation. You’re using JavaScript instead of just the JSON it needs. Try this:

{"passwordlessMethod": "link"}
1 Like
#3

Much thanks! Appreciate :fire: