Skip to content

Commit c565e20

Browse files
kushalshit27mgyarmathy
authored andcommitted
add comments to client filtering logic
1 parent e4ca43e commit c565e20

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/tools/auth0/handlers/clients.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,12 @@ export default class ClientHandler extends DefaultAPIHandler {
329329
// As it could cause problems if it gets deleted or updated etc
330330
const currentClient = this.config('AUTH0_CLIENT_ID') || '';
331331

332+
/*
333+
* Filter out:
334+
* - The client used to access Auth0 Management API
335+
* - Clients in the exclusion list
336+
* - Third-party clients when AUTH0_EXCLUDE_THIRD_PARTY_CLIENTS is enabled
337+
*/
332338
const filterClients = (list: Client[]): Client[] =>
333339
list.filter(
334340
(item) =>

0 commit comments

Comments
 (0)