how to test registration endpoint with jwt on springboot code example
Example: get username from jwt token request spring boot
UserDetails userDetails = (UserDetails) SecurityContextHolder.getContext().getAuthentication()
.getPrincipal();
String username = userDetails.getUsername();