mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
chore: added await in get new token
This commit is contained in:
@@ -694,7 +694,7 @@ export class AccountsServer extends AccountsCommon {
|
||||
}
|
||||
const newStampedToken = accounts._generateStampedLoginToken();
|
||||
newStampedToken.when = currentStampedToken.when;
|
||||
accounts._insertLoginToken(this.userId, newStampedToken);
|
||||
await accounts._insertLoginToken(this.userId, newStampedToken);
|
||||
return accounts._loginUser(this, this.userId, newStampedToken);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user