https://kotlinlang.org logo
#ktor
Title
# ktor
m

marioled

08/13/2020, 1:39 PM
How to read jwt string array claim? Im trying with asList(), but don't know how to call method.
Ok, got it
Copy code
it.payload.claims["roles"]?.asList(String::class.java)
or
Copy code
it.payload.getClaim("roles")?.asList(String::class.java)
forgot null check 🙂
8 Views