express-stormpath icon indicating copy to clipboard operation
express-stormpath copied to clipboard

Add support for auto-expansion of application custom data

Open the-overengineer opened this issue 8 years ago • 0 comments

Adds a configuration option to config.web to expand the stormpathApplication customData field as:

web:
  application:
    expand:
      customData: true # defaults to false to keep backwards compat

If specified, the expansion will automatically happen when attaching the stormpathApplication property to req.app. Do note, however, that the setting of stormpathApplication happens only once, on application load, so any updates will still need to be saved manually.

Fixes #440

the-overengineer avatar Dec 20 '16 12:12 the-overengineer