diff --git a/packages/core/src/storage/StorageUtility.ts b/packages/core/src/storage/StorageUtility.ts index 86d60c2a21..ddd2e489d5 100644 --- a/packages/core/src/storage/StorageUtility.ts +++ b/packages/core/src/storage/StorageUtility.ts @@ -154,9 +154,8 @@ export default class StorageUtility implements IStorageUtility { userId: string, secure?: boolean, ): Promise> { - const stored = await (secure - ? this.secureStorage - : this.insecureStorage + const stored = await ( + secure ? this.secureStorage : this.insecureStorage ).get(this.getKey(userId)); if (stored === undefined) { @@ -189,9 +188,8 @@ export default class StorageUtility implements IStorageUtility { key: string, options?: { errorIfNull?: boolean; secure?: boolean }, ): Promise { - const value = await (options?.secure - ? this.secureStorage - : this.insecureStorage + const value = await ( + options?.secure ? this.secureStorage : this.insecureStorage ).get(key); if (value === undefined && options?.errorIfNull) { throw new Error(`[${key}] is not stored`); diff --git a/packages/node/src/login/oidc/ClientRegistrar.spec.ts b/packages/node/src/login/oidc/ClientRegistrar.spec.ts index 255f5e4341..388bd19424 100644 --- a/packages/node/src/login/oidc/ClientRegistrar.spec.ts +++ b/packages/node/src/login/oidc/ClientRegistrar.spec.ts @@ -363,7 +363,8 @@ describe("ClientRegistrar", () => { // Check that the returned algorithm value is what we expect expect(client.idTokenSignedResponseAlg).toBe( // eslint-disable-next-line @typescript-eslint/no-non-null-assertion - IssuerConfigFetcherFetchConfigResponse.idTokenSigningAlgValuesSupported![0], + IssuerConfigFetcherFetchConfigResponse + .idTokenSigningAlgValuesSupported![0], ); // Check that the expected algorithm information have been saved in storage @@ -371,7 +372,8 @@ describe("ClientRegistrar", () => { mockStorage.getForUser("mySession", "idTokenSignedResponseAlg"), ).resolves.toBe( // eslint-disable-next-line @typescript-eslint/no-non-null-assertion - IssuerConfigFetcherFetchConfigResponse.idTokenSigningAlgValuesSupported![0], + IssuerConfigFetcherFetchConfigResponse + .idTokenSigningAlgValuesSupported![0], ); }); });