Skip to content

Commit 243b8d9

Browse files
authored
Refactor audience assignment for Auth0
1 parent 3558606 commit 243b8d9

File tree

1 file changed

+1
-1
lines changed
  • cloudflare-worker/src/routes/system

1 file changed

+1
-1
lines changed

cloudflare-worker/src/routes/system/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ export const setupSystemRoutes = async (router: Router, env: Env) => {
198198
const tokenUrl = `https://${env.AUTH0_DOMAIN}/oauth/token`;
199199

200200
// Audience for the management API: default to api/v2
201-
const audience = env.AUTH0_AUDIENCE || `https://${env.AUTH0_DOMAIN}/api/v2/`;
201+
const audience =`https://${env.AUTH0_DOMAIN}/api/v2/`;
202202

203203
// Build the request body for client credentials grant
204204
const body = {

0 commit comments

Comments
 (0)