curl --location --request POST 'https://sign-stag.auth.eu-west-2.amazoncognito.com/ oauth2/token' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Basic {clientid&clientSecretBase64}' \ --data-urlencode 'grant_type=client_credentials'