Server-side NodeJS with moralis

Can someone please show how to login to moralis with server side code.
The boiler plate code that uses the line user = await Moralis.authenticate({ signingMessage: "Hello World!" }), reverts with a “no window object” error when executed on a node js server.

why do you need to login server side? you have access to everything from server side with master key