Skip to content

Commit f62bd95

Browse files
committed
JwtPayload
1 parent b577376 commit f62bd95

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

src/routes/v1/access/token.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ router.post('/refresh',
4444

4545
const keystore = await KeystoreRepo.find(
4646
req.user._id,
47-
accessTokenPayload.param(),
48-
refreshTokenPayload.param()
47+
accessTokenPayload.prm,
48+
refreshTokenPayload.prm
4949
);
5050

5151
if (!keystore) throw new AuthFailureError('Invalid access token');

src/utils/JWT.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,4 @@ export class JwtPayload {
100100
this.exp = this.iat + (validity * 24 * 60 * 60);
101101
this.prm = param;
102102
}
103-
104-
public issuer(): string { return this.iss; }
105-
public subject(): string { return this.sub; }
106-
public audience(): string { return this.aud; }
107-
public issuedAt(): number { return this.iat; }
108-
public expiresIn(): number { return this.exp; }
109-
public param(): string { return this.prm; }
110103
}

0 commit comments

Comments
 (0)