There a good lib for JWT's that supports JS, Nativ...
# multiplatform
n
There a good lib for JWT's that supports JS, Native, and JVM?
s
Couldn't find one, but there's an article about how to set it up yourself, by tying to platform-specific implementations: https://medium.com/@eloew47/using-jwt-tokens-in-a-kotlin-multi-platform-project-ad0af4bc6e8c Note that they only cover the iOS implementation, so you might need more work to support other
native
platforms this way.
👀 1
Though this makes me wonder: are JWTs this complicated that they can't just be generated using pure Kotlin code?
Or is it simply that no one even bothered trying to do so?
n
No, they're pretty straight forward. Thank you!
s
I found one that's almost all pure Kotlin, but still relies on
javax.crypto
for generating the signature. I guess the cryptography part is the tricky one, let alone encryption.