Should it be possible to use (server side of) jwt ...
# ktor
j
Should it be possible to use (server side of) jwt auth on Android?
getting following when I call
JWT.create()
Copy code
NoSuchMethodError: No static method encodeBase64URLSafeString([B)Ljava/lang/String; in class Lorg/apache/commons/codec/binary/Base64;
I explicitly added
commons-codec:commons-codec
as dependency but that didn't help
We still right now need to use Ktor 1.3.2 and that version at least has transitive dependency to
com.auth0:java-jwt:3.9.0
following looks promising but isn't I believe in that version https://github.com/auth0/java-jwt/pull/401 (or it seems in latest 3.10.3)....seems to be in 4.0 dev branch right now
I pulled that branch down here, built jar, and included that as dependency and it's now generating the token