From 1ca2175567373a77bc1c65cff0ec76505245f58f Mon Sep 17 00:00:00 2001 From: Lakhan Samani Date: Tue, 2 Apr 2024 14:53:58 +0530 Subject: [PATCH] Make client id optional --- src/index.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/index.ts b/src/index.ts index 96c7b68..71c4991 100644 --- a/src/index.ts +++ b/src/index.ts @@ -51,9 +51,6 @@ export class Authorizer { if (!config.authorizerURL && !config.authorizerURL.trim()) throw new Error('Invalid authorizerURL'); - if (!config.clientID && !config.clientID.trim()) - throw new Error('Invalid clientID'); - if (config.authorizerURL) this.config.authorizerURL = trimURL(config.authorizerURL);