Calling cloud functions from Next js 13 server components

Is there a way to call cloud functions from Next js 13 server components?

I tried but it keeps logging " ReferenceError: localStorage is not defined" as there is no browser Api’s on the server.
i also tried @parse-ssr but it logs “cloud is undefined”

Is there a way to use cookies or jwt with Parse to enable authentication in server components and the ability to use Parse server side?

Thanks in advance.

You should import parse from “parse/node” when not working in browser environment. Then you shouldn’t get this error.