Answers for "get username from jwt token request spring boot"

1

get username from jwt token request spring boot

UserDetails userDetails = (UserDetails) SecurityContextHolder.getContext().getAuthentication()
                        .getPrincipal();
String username = userDetails.getUsername();
Posted by: Guest on April-28-2020

Code answers related to "get username from jwt token request spring boot"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language