Fixed missing arguments.

This commit is contained in:
flash 2025-04-22 20:25:03 +00:00
parent 4f3b3257b0
commit da33816ee4
Signed by: flash
GPG key ID: 2C9C2C574D47FE3E
2 changed files with 3 additions and 3 deletions
src/mami.js

View file

@ -22,9 +22,9 @@ const MamiFlashiiAuth = function(flashii) {
async refresh() {
try {
({ token_type: type=null, access_token: token=null } = await flashii.v1.chat.token());
({ token_type: type=null, access_token: token=null } = await flashii.v1.chat.token({}));
} catch(ex) {
await flashii.v1.chat.login();
await flashii.v1.chat.login({});
}
},
};

View file

@ -117,7 +117,7 @@ const MamiSockChatHandlers = function(
}
if(ev.detail.session.needsAuth) {
ctx.flashii.v1.chat.login();
ctx.flashii.v1.chat.login({});
return;
}