So i was able to resolve this:
Here is the powershell script for Mac:
- Register-PnPEntraIDAppForInteractiveLogin -ApplicationName "<Application Name>" -SharePointDelegatePermissions "AllSites.FullControl" -Tenant <tenantdomain>.onmicrosoft.com -Interactive
- Connect-PnPOnline -Url https://<tenantdomain>.sharepoint.com -Interactive -ClientId <client_id>
- Set-PnPTenant -DisableCustomAppAuthentication $false