Allow automatically updating iksm_session while monitoring SplatNet 2

This commit is contained in:
Samuel Elliott
2022-03-26 22:12:04 +00:00
parent e801487010
commit 5c79874118
4 changed files with 42 additions and 15 deletions

View File

@@ -72,7 +72,7 @@ export async function handler(argv: ArgumentsCamelCase<Arguments>) {
const usernsid = argv.user ?? await storage.getItem('SelectedUser');
const token: string = argv.token ||
await storage.getItem('NintendoAccountToken.' + usernsid);
const {splatnet, data} = await getIksmToken(storage, token, argv.zncProxyUrl);
const {splatnet, data} = await getIksmToken(storage, token, argv.zncProxyUrl, argv.autoUpdateSession);
const records = await splatnet.getRecords();
const stages = await splatnet.getStages();