fixed auth error
This commit is contained in:
parent
29b7e7fec5
commit
ca85767a3c
1 changed files with 5 additions and 0 deletions
|
@ -237,6 +237,11 @@ export function DmmBooks({ db, browser }: { db: Database; browser: Browser }) {
|
||||||
const page = await ctx.newPage();
|
const page = await ctx.newPage();
|
||||||
await page.goto("https://accounts.dmm.com/service/login/password");
|
await page.goto("https://accounts.dmm.com/service/login/password");
|
||||||
await page.waitForURL("https://www.dmm.com/", { timeout: 0 });
|
await page.waitForURL("https://www.dmm.com/", { timeout: 0 });
|
||||||
|
await page.goto("https://www.dmm.com/service/-/exchange");
|
||||||
|
await Promise.race([
|
||||||
|
page.waitForURL("https://www.dmm.com/", { timeout: 0 }),
|
||||||
|
page.waitForURL("https://www.dmm.co.jp/top/", { timeout: 0 }),
|
||||||
|
]);
|
||||||
const secrets = await ctx.storageState();
|
const secrets = await ctx.storageState();
|
||||||
await browser.close();
|
await browser.close();
|
||||||
await db.run(
|
await db.run(
|
||||||
|
|
Loading…
Add table
Reference in a new issue