Skip to content

Commit 942af82

Browse files
committed
doc: correct comment in /api/__auth0/token
1 parent a0cbc76 commit 942af82

File tree

1 file changed

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

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,8 @@ export const setupSystemRoutes = async (router: Router, env: Env) => {
127127
* Request an Auth0 Management API token using the client credentials flow.
128128
* This endpoint requires the `env.ADMIN_AUTH0_PERMISSION` permission.
129129
* The following environment variables must be configured in the Cloudflare Worker:
130-
* - AUTH0_CLIENT_ID
131-
* - AUTH0_CLIENT_SECRET
130+
* - AUTH0_MANAGEMENT_API_CLIENT_ID
131+
* - AUTH0_MANAGEMENT_API_CLIENT_SECRET
132132
* - AUTH0_DOMAIN
133133
*
134134
* Security note: This route should be limited to administrative users
@@ -141,7 +141,7 @@ export const setupSystemRoutes = async (router: Router, env: Env) => {
141141
* description: |
142142
* Request an Auth0 Management API JWT token using the Client Credentials grant.
143143
* This endpoint requires `ADMIN_AUTH0_PERMISSION` and uses the following
144-
* environment variables: `AUTH0_CLIENT_ID`, `AUTH0_CLIENT_SECRET`, and `AUTH0_DOMAIN`.
144+
* environment variables: `AUTH0_MANAGEMENT_API_CLIENT_ID`, `AUTH0_MANAGEMENT_API_CLIENT_SECRET`, and `AUTH0_DOMAIN`.
145145
* Returns a JSON response containing access_token, token_type, and expires_in when successful.
146146
* tags:
147147
* - System

0 commit comments

Comments
 (0)