What's the best practice to implement UserDetails ...
# spring
c
What's the best practice to implement UserDetails in kotlin for secure Spring Boot app with JPA? Is it still the following?
Copy code
class User(
    private val username: String = ""
    ...
): UserDetails {
    override fun getUsername() = username
    ...
}