Using Dynamic URL websocket node

I would like to use a websocket interface in node-red.
For this I need a dynamic url, because I need a token for access. This changes every 24 hours.

Are there approaches to use a dynamic url for the websocket node?