Does Ktor have is own method for JWT generation or...
# ktor
l
Does Ktor have is own method for JWT generation or Should I use another library like java-jwt?
d
l
I thought that only contains authentication methods. It's quite confusing. I wonder if there are more detailed and beginner friendly documents.
d
If you google, you'll should find some tutorials about ktor and jwt.
👍 1
l
I found some helpful materials but sadly not that many. Thank you.
k
Did you figure this one out? Did you have to use additional libraries?
l
No, you just need a dependency
implementation("io.ktor:ktor-auth-jwt:1.2.2")
. I found a sample project: https://github.com/AndreasVolkmann/ktor-auth-jwt-sample Check it out. Code size is small and JwtConfig.kt file in the repository is all you need. Thanks to Andreas Volkmann.
k
Thanks for the reply!