fix: don't call getCookie when running in node
There is no such thing as document
in node. We should find another way
to get the csrf token in this case.
There is no such thing as document
in node. We should find another way
to get the csrf token in this case.