Zend certified PHP/Magento developer

The consumer isn’t authorized to access %resources

I have installed magento2.4.4 and php8.1 and when trying to access rest api using bearer token it is giving error for all the routes.

 {
    "message": "The consumer isn't authorized to access %resources.",
    "parameters": {
        "resources": "Magento_Catalog::products"
    }
}