You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`config`|`UnleashConfig`| Yes | The configuration object for the `unleash-client`. See options below. |
93
-
|`global`|`boolean`| No | If `true`, the module will be registered as a global module. Defaults to `false`. |
93
+
|`isGlobal`|`boolean`| No | If `true`, the module will be registered as a global module. Defaults to `false`. |
94
94
95
95
The `config` object is passed directly to the `unleash-client`. The most common options are:
96
96
@@ -101,8 +101,6 @@ The `config` object is passed directly to the `unleash-client`. The most common
101
101
|`customHeaders`|`object`| No | Custom headers to be sent to the Unleash API. Use `Authorization` for the API key generated by the Unleash panel. |
102
102
|`...`|`any`| No | Any other valid option from the [official unleash-client-node documentation](https://docs.getunleash.io/reference/sdks/node). |
103
103
104
-
For `forRootAsync`, `isGlobal` is used instead of `global`.
105
-
106
104
### Protecting a Route with a Feature Toggle
107
105
To protect an endpoint with a feature toggle, use the `@UnleashToggle` decorator. The global `UnleashGuard` will automatically deny access if the feature is disabled.
0 commit comments