From d81929fb7e88ed2eb1ff81fde7128a79cfe69cb1 Mon Sep 17 00:00:00 2001 From: Brian Helba Date: Fri, 28 Jan 2022 01:13:11 -0500 Subject: [PATCH] Use a simpler array type syntax --- src/oauth-client.ts | 2 +- src/oauth-facade.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/oauth-client.ts b/src/oauth-client.ts index 82a1d1c..84c16ec 100644 --- a/src/oauth-client.ts +++ b/src/oauth-client.ts @@ -14,7 +14,7 @@ export default class OauthClient { constructor( authorizationServerBaseUrl: string, protected readonly clientId: string, - scopes: Array = [], + scopes: string[] = [], ) { if (!window.isSecureContext) { throw Error('OAuth Client cannot operate within insecure contexts.'); diff --git a/src/oauth-facade.ts b/src/oauth-facade.ts index c4edb8c..a551d69 100644 --- a/src/oauth-facade.ts +++ b/src/oauth-facade.ts @@ -49,7 +49,7 @@ export default class OauthFacade { authorizationServerBaseUrl: string, protected readonly redirectUrl: string, protected readonly clientId: string, - protected readonly scopes: Array, + protected readonly scopes: string[], ) { // Strip any trailing slash this.authorizationServerBaseUrl = authorizationServerBaseUrl