Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

Commit

Permalink
feat: #4 reduce any type in SilentRenewService
Browse files Browse the repository at this point in the history
  • Loading branch information
pamapa committed Aug 26, 2021
1 parent cefd12a commit 267c5f9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/SilentRenewService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@

import { Log } from "./utils";
import { UserManager } from "./UserManager";
import { AccessTokenCallback } from "./AccessTokenEvents";

export class SilentRenewService {
private _userManager: UserManager;
private _callback: any;
private _callback: AccessTokenCallback | null;

public constructor(userManager: UserManager) {
this._userManager = userManager;
this._callback = null;
}

public async start() {
Expand All @@ -32,7 +34,7 @@ export class SilentRenewService {
public stop() {
if (this._callback) {
this._userManager.events.removeAccessTokenExpiring(this._callback);
delete this._callback;
this._callback = null;
}
}

Expand Down

0 comments on commit 267c5f9

Please sign in to comment.