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

Rodrigo Silva

10/15/2020, 5:02 PM
Hi all. Using ktor-jwt how can i get the payload?
r

Razvan

10/15/2020, 5:11 PM
Copy code
install(Authentication) {
    jwt {
        verifier(authService.verifier())
        validate {
            try {
                UserPrincipal(it.payload)
            } catch (e: AppException) {
                log.error("Principal error")
                null
            }
        }
    }
}
2 Views