A button with id :login" exist on my page and shows up if queried on the console, however, the line -
const loginButton = document.getElementById(“login”);
gives an error on the console like this -
Uncaught (in promise) TypeError: loginButton is null
I cant figure out whats up.
The app loads the Auth0 lib from -
and the login part is created from the code given by auto0, which i load in the head section at the very begining with this line-
Please help,
thanks