martmists
08/13/2022, 1:54 PMkotlin.reflect.full.IllegalCallableAccessException: java.lang.IllegalAccessException: class kotlin.reflect.jvm.internal.calls.CallerImpl$FieldGetter cannot access a member of class team.luminescent.site.auth.DiscordAuthPrincipal with modifiers "private final"
The DiscordAuthPrincipal is just an oauth principal:
data class DiscordAuthPrincipal(val accessToken: String, val refreshToken: String) : Principal {
fun isValid(): Boolean {
// Fetch API to do additional checks
}
}
Code:
exception<Exception> { call, err ->
call.respondTemplate(HttpStatusCode.InternalServerError, "pages/error/500", mapOf(
"error" to err.stackTraceToString()
))
}