github-actions[bot]
commited on
Commit
ยท
cc874b6
1
Parent(s):
4eaabd4
Update from GitHub Actions
Browse files
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(
|
|
|
|
|
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 {
|