How to decode access token in spring boot 3

We have a UI application from where were are receiving the access-token while requesting the REST-API. We need to decode the access-token to find the user details and the permit few operations for specific set of users. All I’m looking is how to decode the access-token in spring-boot3. A sample code is really appreciated.