github-actions[bot] commited on
Commit
cc874b6
ยท
1 Parent(s): 4eaabd4

Update from GitHub Actions

Browse files
Files changed (1) hide show
  1. functions/api/mail/auth.ts +3 -2
functions/api/mail/auth.ts CHANGED
@@ -133,7 +133,9 @@ export const onRequest = async (context: RouteContext): Promise<Response> => {
133
 
134
 
135
  //็กฎ่ฎค็™ปๅฝ•
136
- await page.waitForURL('https://login.live.com/**')
 
 
137
  await page.click('button[type="submit"]#acceptButton'); // ๅŒๆ„ๆŒ‰้’ฎ
138
 
139
  //ๅŒๆ„ๆŽˆๆƒ
@@ -146,7 +148,6 @@ export const onRequest = async (context: RouteContext): Promise<Response> => {
146
  console.log("Consent page not found or timeout, skipping...");
147
  }
148
  await page.waitForURL((url) => {
149
- console.log(url)
150
  return url.href.startsWith(redirectUri);
151
  })
152
  } finally {
 
133
 
134
 
135
  //็กฎ่ฎค็™ปๅฝ•
136
+ await page.waitForURL((url) => {
137
+ return url.href.startsWith("https://login.live.com");
138
+ })
139
  await page.click('button[type="submit"]#acceptButton'); // ๅŒๆ„ๆŒ‰้’ฎ
140
 
141
  //ๅŒๆ„ๆŽˆๆƒ
 
148
  console.log("Consent page not found or timeout, skipping...");
149
  }
150
  await page.waitForURL((url) => {
 
151
  return url.href.startsWith(redirectUri);
152
  })
153
  } finally {