Adding metafield creation scopes makes the app page keep refreshing

I have been adding the following permissions inside the shopify.app.toml of my public Shopify Theme App:

scopes = "read_products,write_products,write_metaobject_definitions,read_metaobject_definitions"

But my when running my app’s main page on my development store it keeps reloading the page over and over until eventually it shows an error like the following:

I tried clearing the browser cookies or launching from a new web browser but it’s still the same issue.

I also tried uninstalling and reinstalling but it’s always the same issue.

I’m using the Shopify Theme app template by the way which has the Authentication.

Did I miss something, is there something I need to configure first?

I found the issue, I needed to push the permissions to my Admin dashboard too