feat(swagger-ui-react): add support for persistAuthorization prop (#7842)

Closes #7389
This commit is contained in:
kyori19
2022-03-01 18:54:03 +09:00
committed by GitHub
parent 8009035fa9
commit 67dd4f6a8d
2 changed files with 9 additions and 0 deletions

View File

@@ -152,6 +152,12 @@ Configures the request snippet core plugin. See Swagger UI's [Display Configurat
⚠️ This prop is currently only applied once, on mount. Changes to this prop's value will not be propagated to the underlying Swagger UI instance. A future version of this module will remove this limitation, and the change will not be considered a breaking change.
#### `persistAuthorization`: PropTypes.bool
If set, it persists authorization data and it would not be lost on browser close/refresh. The default is false.
⚠️ This prop is currently only applied once, on mount. Changes to this prop's value will not be propagated to the underlying Swagger UI instance. A future version of this module will remove this limitation, and the change will not be considered a breaking change.
## Limitations
* Not all configuration bindings are available.