Answers for "how to set two different table admin and user for separate jwt token in spring boot"

0

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;
	}
Posted by: Guest on May-16-2021

Code answers related to "how to set two different table admin and user for separate jwt token in spring boot"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language