File tree Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -44,8 +44,8 @@ router.post('/refresh',
44
44
45
45
const keystore = await KeystoreRepo . find (
46
46
req . user . _id ,
47
- accessTokenPayload . param ( ) ,
48
- refreshTokenPayload . param ( )
47
+ accessTokenPayload . prm ,
48
+ refreshTokenPayload . prm
49
49
) ;
50
50
51
51
if ( ! keystore ) throw new AuthFailureError ( 'Invalid access token' ) ;
Original file line number Diff line number Diff line change @@ -100,11 +100,4 @@ export class JwtPayload {
100
100
this . exp = this . iat + ( validity * 24 * 60 * 60 ) ;
101
101
this . prm = param ;
102
102
}
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 ; }
110
103
}
You can’t perform that action at this time.
0 commit comments