Set sessionExpiryTime and require user-authentication in adminAuth

Hi All,

I'm trying to put the two properties in adminAuth in settings.js described at:

https://nodered.org/docs/user-guide/runtime/securing-node-red#token-expiration

i.e.:
adminAuth: { sessionExpiryTime: 86400, ... }

and

https://nodered.org/docs/user-guide/runtime/securing-node-red#custom-user-authentication

i.e.: adminAuth: require("./user-authentication")

I came up with this, but it did not work out:

adminAuth: { sessionExpiryTime: 3600, module: require("./user-authentication") }

Thanks for any hints,
r0ller

Just for the record: had to put sessionExpiryTime in the user-authentication.js itself and now it works:D

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.