(configPath)
| 79 | * @returns {Promise<Provider>} |
| 80 | */ |
| 81 | export function loadProvider (configPath) { |
| 82 | return Promise.resolve() |
| 83 | .then(async () => { |
| 84 | const { default: config } = await import(configPath) |
| 85 | |
| 86 | const provider = new OIDCProvider(config) |
| 87 | |
| 88 | return provider.initializeKeyChain(config.keys) |
| 89 | }) |
| 90 | } |
| 91 | |
| 92 | export { createServer } |
| 93 | function createServer (options) { |