Closed eastcoastcoder closed 2 years ago
This allows hooks into the onComplete function which could facilitate other methods such as ui.initOAuth() By allowing functions you can add additional properties to the display config and access them like so:
swaggerConfiguration: { oauth2ClientId: config.clientId, oauth2ClientSecret: config.clientSecret, onComplete: function() { const { oauth2ClientId, oauth2ClientSecret } = ui.getConfigs(); ui.initOAuth({ clientId: oauth2ClientId, clientSecret: oauth2ClientSecret, }); } }
This allows hooks into the onComplete function which could facilitate other methods such as ui.initOAuth() By allowing functions you can add additional properties to the display config and access them like so: