1

I'm using Express the Node.JS framework, and cookies for authentication.

How can I show a pop up for the user's first login only?

Jack Bashford
  • 43,180
  • 11
  • 50
  • 79
Rajan saha Raju
  • 794
  • 7
  • 13
  • You could store a cookie stating that the popup has been shown before. If this cookie is not present, display the popup and add the cookie. Without your code, I can't really be more specific. – frobinsonj Jun 27 '19 at 08:46

1 Answers1

2

You can use the same technique from my answer here:

if (!localStorage.getItem("firstTime")) {
    localStorage.setItem("firstTime", "true");
    showPopUp();
}
Jack Bashford
  • 43,180
  • 11
  • 50
  • 79