Is there an `ktor-auth` dependency setup document ...
# ktor
j
Is there an
ktor-auth
dependency setup document for mulitplatform android/ios/web? I am running into this error:
Copy code
No matching variant of io.ktor:ktor-auth:1.6.3 was found. The consumer was configured to find a usage of 'kotlin-runtime' of a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'js', attribute 'org.jetbrains.kotlin.js.compiler' with value 'ir' but:
          - Variant 'jvmApiElements-published' capability io.ktor:ktor-auth:1.6.3:
              - Incompatible because this component declares an API of a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'jvm' and the consumer needed a usage of 'kotlin-runtime' of a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'js'
              - Other compatible attribute:
                  - Doesn't say anything about org.jetbrains.kotlin.js.compiler (required 'ir')
Using Kotlin 1.5.30, Ktor 1.6.3, applying the
ktor-auth
in common and mixing in
ktor-client-auth-js
in common and/or jsMain and continue to get this error building/running web This worked with previous versions but having issues getting it to work now on web/js, anyone seen this?
a
The
ktor-auth
artifact is JVM only but
ktor-client-auth
is multiplatform. This article in documentation is about the
Auth
plugin for a client.
j
Yep, that did it, inadvertently switched to
ktor-auth
, switched back and all good, thanks 👍