Fixed missing arguments.
This commit is contained in:
parent
4f3b3257b0
commit
da33816ee4
2 changed files with 3 additions and 3 deletions
src/mami.js
|
@ -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({});
|
||||
}
|
||||
},
|
||||
};
|
||||
|
|
|
@ -117,7 +117,7 @@ const MamiSockChatHandlers = function(
|
|||
}
|
||||
|
||||
if(ev.detail.session.needsAuth) {
|
||||
ctx.flashii.v1.chat.login();
|
||||
ctx.flashii.v1.chat.login({});
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue