File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -347,7 +347,7 @@ export class AccountsServer {
347
347
throw new AccountsError ( 'User not found' , { id : session . userId } ) ;
348
348
}
349
349
const tokens = this . createTokens ( sessionToken ) ;
350
- await this . db . updateSession ( sessionToken , { ip, userAgent } ) ;
350
+ await this . db . updateSession ( session . sessionId , { ip, userAgent } ) ;
351
351
352
352
const result = {
353
353
sessionId : session . sessionId ,
Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ export interface DBInterface {
120
120
extraData ?: object
121
121
) : Promise < string > ;
122
122
updateSession (
123
- token : string ,
123
+ sessionId : string ,
124
124
connection : ConnectionInformationsType
125
125
) : Promise < void > ;
126
126
invalidateSession ( sessionId : string ) : Promise < void > ;
You can’t perform that action at this time.
0 commit comments