Auth0 Home Blog Docs

Universal login lock does not accept "mustAcceptTerms" config option?

#1

We have transitioned from the widget based Lock in a webapp to Lock in Universal login using passwordless logins.

However the “mustAcceptTerms” config option we used in the widget version of Lock seems to not appear at all for Universal login?

Is it due to it being passwordless or is that config option not available at all in Universal login?

Is there another way to prevent users from signing in unless they check some sort of box?

#2

Hi, the mustAcceptTerms config is only available for Signup of Database users. It will not work for Passwordless connections as expected.

Although we do not recommend to make custom CSS/JS changes to the Universal Login DOM, if this is a very important requirement for you, you can go ahead and add the terms and conditions yourself to the Lock widget. The reason it is not recommended it because future versions of Lock may change the behaviour and break your custom code.

#3

Thanks for the reply.
Ok this is not apparent in the docs unless I missed the differentiation of this.

We also don’t want to customize Lock for the reasons you gave so I guess we would have to have our own “mustAcceptTerms” screen before displaying the universal login in the first place.