A client-side JavaScript library to authenticate asynchronously to a passport middleware with a popup