how to set two different table admin and user for separate jwt token in spring boot
private Set getAuthority(User user) {
Set authorities = new HashSet<>();
user.getRoles().forEach(role -> {
authorities.add(new SimpleGrantedAuthority("ROLE_" + role.getName()));
});
return authorities;
}