onAfterInit
@quik/authorization / Module / onAfterInit
Function: onAfterInit()
onAfterInit():
Promise<void>
Defined in: authorization/src/module.ts:68
Registers OpenAPI security schemes after the application is fully initialized.
This lifecycle hook runs after all modules are initialized and registers all security schemes from the SchemesStore with the OpenAPI documentation generator. This ensures that all authorization schemes defined in the application are properly documented in the generated OpenAPI specification.
Returns
Promise<void>
Example
// This is called automatically by the bootstrapper
// The security schemes will be added to the OpenAPI documentation:
// {
// "components": {
// "securitySchemes": {
// "bearer": {
// "type": "http",
// "scheme": "bearer"
// },
// "oauth2": {
// "type": "oauth2",
// "flows": { ... }
// }
// }
// }
// }
See
SchemesStore For managing security schemes