Closed Santhosh136 closed 11 months ago
In case you want that value set on each request, then you can use dynamic state overrides: https://github.com/simov/grant/blob/master/examples/dynamic-state/hapi.js#L9-L17
If that value is supposed to be set only once on startup, then you can update your JSON configuration before feeding it into the plugin.
Let me know if that works for you.
I want to use dynamic values in custom_params option of grant config in Hapi js, can anyone help me how to achieve it? example:-
config.json
I have tried using a function to populate dynamic query params before plugin in being registered in server, but its not working