Fix linting and tsc issues

This commit is contained in:
Nicholas Pirrello
2020-06-25 18:28:51 -04:00
parent 144a3b9294
commit 72387eb720
2 changed files with 6 additions and 6 deletions
@@ -158,14 +158,14 @@ class OktaAuth implements
return session?.profile;
}
static normalizeScopes(scope?: string | string[]): Set<string> {
if (!scope) {
static normalizeScopes(scopes?: string | string[]): Set<string> {
if (!scopes) {
return new Set();
}
const scopeList = Array.isArray(scope)
? scope
: scope.split(/[\s|,]/).filter(Boolean);
const scopeList = Array.isArray(scopes)
? scopes
: scopes.split(/[\s|,]/).filter(Boolean);
const normalizedScopes = scopeList.map(scope => {
if (OKTA_OIDC_SCOPES.has(scope)) {
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import express, { Request } from 'express';
import express from 'express';
import { OAuthProvider } from '../../lib/OAuthProvider';
import { Strategy as OktaStrategy } from 'passport-okta-oauth';
import passport from 'passport';