File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ export interface ImpersonateReturnType {
49
49
}
50
50
51
51
export interface SessionType {
52
- sessionId : string ;
52
+ id : string ;
53
53
userId : string ;
54
54
token : string ;
55
55
valid : boolean ;
Original file line number Diff line number Diff line change @@ -347,10 +347,10 @@ 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 ( session . sessionId , { ip, userAgent } ) ;
350
+ await this . db . updateSession ( session . id , { ip, userAgent } ) ;
351
351
352
352
const result = {
353
- sessionId : session . sessionId ,
353
+ sessionId : session . id ,
354
354
user : this . sanitizeUser ( user ) ,
355
355
tokens,
356
356
} ;
@@ -415,7 +415,7 @@ export class AccountsServer {
415
415
throw new AccountsError ( 'User not found' , { id : session . userId } ) ;
416
416
}
417
417
418
- await this . db . invalidateSession ( session . sessionId ) ;
418
+ await this . db . invalidateSession ( session . id ) ;
419
419
this . hooks . emit (
420
420
ServerHooks . LogoutSuccess ,
421
421
this . sanitizeUser ( user ) ,
You can’t perform that action at this time.
0 commit comments