kotlin.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:
Copy code
data class DiscordAuthPrincipal(val accessToken: String, val refreshToken: String) : Principal {
fun isValid(): Boolean {
// Fetch API to do additional checks
}
}