It is working and setting signed token in the cookie. following is one example of a stored cookie:
Strange JS problem (non-NodeBB)
I'm testing my client side code using mocha and I'm having a problem I can't really wrap my head around...
The script downloads its dependencies from the server itself. As long as I clear my cache and reload the page, my tests work fine. When I reload the page normally, though, they fail. If anyone is interested, the code is currently online here.
@Moritz-Friedrich solved it somehow ugly by starting the tests in a "ready" callback. Is there some way to find out whether downloaded code has been fully executed?
Copyright © 2023 NodeBB | Contributors