Skip to content

Commit

Permalink
fix: clearinterval
Browse files Browse the repository at this point in the history
  • Loading branch information
nklomp committed Sep 28, 2023
1 parent ce39958 commit 214e3c6
Show file tree
Hide file tree
Showing 3 changed files with 1,835 additions and 2,329 deletions.
2 changes: 1 addition & 1 deletion packages/client/lib/__tests__/MattrE2E.spec.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ describe('OID4VCI-Client using Mattr issuer should', () => {
expect(client.getAccessTokenEndpoint()).toEqual('https://launchpad.vii.electron.mattrlabs.io/oidc/v1/auth/token');

const accessToken = await client.acquireAccessToken();
console.log(accessToken);
// console.log(accessToken);
expect(accessToken).toMatchObject({
expires_in: 3600,
scope: 'OpenBadgeCredential',
Expand Down
2 changes: 1 addition & 1 deletion packages/issuer/lib/state-manager/MemoryStates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { StateType } from '@sphereon/oid4vci-common/dist/types/StateManager.type
export class MemoryStates<T extends StateType> implements IStateManager<T> {
private readonly expiresInMS: number
private readonly states: Map<string, T>
private cleanupIntervalId?: NodeJS.Timer
private cleanupIntervalId?: number | NodeJS.Timeout

constructor(opts?: { expiresInSec?: number }) {
this.expiresInMS = opts?.expiresInSec !== undefined ? opts?.expiresInSec * 1000 : 180000
Expand Down
Loading

0 comments on commit 214e3c6

Please sign in to comment.