Using moment() in Resource Custom Auth

I have an API that requires a header that contains a current timestamp when making a request for an access token. I'm trying to use moment().unix() in a javascript block as the first step in custom auth but I'm getting the error

Javascript Request in Step 1 failed : ReferenceError: moment is not defined

I've also tried to use it with the header value field as well like
{{ moment().unix() }} but the request contains the raw value
Screenshot 2025-02-10 at 9.26.50 AM

Is someone able to confirm that moment() is not currently available within Resources?

Hey Matt - It looks like we aren't automatically importing that library for custom auth. I've created an issue ticket on our end to address that, but you should be able to get it to work by just adding:
var moment = require('moment')