Getting Error in the Oauth flow

I am trying to connect from Salesforce Commerce to Square Payment gateway via Oauth flow and getting this error. How ever , in the named credential if I use no-authentication then able to connect to Square.

“You don’t have permission to view this data. Ask your administrator to set up authentication for the external data source.”

Hi :wave: Do you mind elaborating on the end goal of the connection you’re making? Can you expand on what step of the OAuth flow you’re getting an error? Thanks!