fetch Authentication and Principle from Auth0 Jwt in sprin gboot code example
Example: get username from jwt token request spring boot
UserDetails userDetails = (UserDetails) SecurityContextHolder.getContext().getAuthentication()
.getPrincipal();
String username = userDetails.getUsername();