How to read jwt string array claim? Im trying with...
# ktor
m
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 🙂