Invalid token, state does not match

If I use the auth.login() syntax, does it automatically allow me to customize using the host page, assuming that I have selected enabled option on the Hosted Pages tab?

I should be thanking you for taking your time to assist me. I appreciate it.