what is the correct way to install Koin ? I have t...
# ktor
k
what is the correct way to install Koin ? I have tried
Copy code
fun Application.configureKoin() {
    install(Koin) {
        val koinModule = module {
            single {
                SimpleJWT("my-super-secret-for-jwt")
            }
        }

        koin {
            modules(koinModule)
        }
    }
}
but get an error that
Exception in thread "main" org.koin.core.error.KoinAppAlreadyStartedException: A Koin Application has already been started
g
I do it like that
k
thanks