File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -75,22 +75,6 @@ export class CredentialManager implements Disposable {
75
75
76
76
const existingInfo = await this . getAuthInfo ( site , false ) ;
77
77
78
- if ( isOAuthInfo ( existingInfo ) && isOAuthInfo ( info ) ) {
79
- const effectiveExistingIat = existingInfo . iat ?? 0 ;
80
- const effectiveNewIat = info . iat ?? 0 ;
81
- if ( effectiveExistingIat > effectiveNewIat ) {
82
- Logger . debug ( `Not replacing credentials because the existing credentials have a later iat.` ) ;
83
- return ;
84
- }
85
-
86
- if ( effectiveExistingIat === effectiveNewIat && existingInfo . recievedAt > info . recievedAt ) {
87
- Logger . debug (
88
- `Not replacing credentials because the existing credentials have were received at a later time (despite having the same iat).` ,
89
- ) ;
90
- return ;
91
- }
92
- }
93
-
94
78
this . _memStore . set ( site . product . key , productAuths . set ( site . credentialId , info ) ) ;
95
79
96
80
const hasNewInfo =
You can’t perform that action at this time.
0 commit comments