Auth0 login not working

When i enter the URL https://domain.com/api/auth/login/ it redirects me to https://domain.com. form is not shown at all. how to fix?

using next.js and vercel