The access tokens provided by the authorization flows are JWT tokens. You can use a JWT library to decode the token and get the user's ID, expiration date, and other information.
You can try it out yourself on your own tokens by pasting them into jwt.io.