diff --git a/aws/public-api-server.task-definition.json.j2 b/aws/public-api-server.task-definition.json.j2 index cd204b4bb..af848b389 100644 --- a/aws/public-api-server.task-definition.json.j2 +++ b/aws/public-api-server.task-definition.json.j2 @@ -40,7 +40,7 @@ }, { "name": "POAP_AUTH_URL", - "value": "https://poapauth.auth0.com" + "value": "https://auth.accounts.poap.xyz" }, { "name": "GITHUB_URL", diff --git a/aws/server.task-definition.json.j2 b/aws/server.task-definition.json.j2 index 1c7f386f3..f51c7f7e0 100644 --- a/aws/server.task-definition.json.j2 +++ b/aws/server.task-definition.json.j2 @@ -36,7 +36,7 @@ }, { "name": "POAP_AUTH_URL", - "value": "https://poapauth.auth0.com" + "value": "https://auth.accounts.poap.xyz" }, { "name": "GITHUB_URL", diff --git a/src/external/poap.ts b/src/external/poap.ts index 3b615069b..fad85c79a 100644 --- a/src/external/poap.ts +++ b/src/external/poap.ts @@ -46,7 +46,7 @@ async function retrievePOAPToken(): Promise { const poapResponse = await fetch(`${POAP_AUTH_URL}/oauth/token`, { method: 'POST', body: JSON.stringify({ - audience: 'gitpoap', + audience: 'https://api.poap.tech', grant_type: 'client_credentials', client_id: POAP_CLIENT_ID, client_secret: POAP_CLIENT_SECRET,