github-actions[bot] commited on
Commit
637d7ae
·
1 Parent(s): ed57b37

Update from GitHub Actions

Browse files
Files changed (1) hide show
  1. functions/api/mail/auth.ts +3 -3
functions/api/mail/auth.ts CHANGED
@@ -101,12 +101,12 @@ export const onRequest = async (context: RouteContext): Promise<Response> => {
101
  const proof = [
102
  {
103
  "suffix": "godgodgame.com",
104
- "apiUrl": "http://159.138.99.139:89/api/latest-email",
105
  "token": env.PROOF_GODGODGAME_TOKEN
106
  },
107
  {
108
  "suffix": "igiven.com",
109
- "apiUrl": "http://159.138.99.139:90/api/latest-email",
110
  "token": env.PROOF_IGIVEN_TOKEN
111
  }
112
  ]
@@ -115,7 +115,7 @@ export const onRequest = async (context: RouteContext): Promise<Response> => {
115
  const proofConfig = proof.find(p => p.suffix === suffix)!;
116
  console.log(suffix,proofConfig)
117
  const verificationCode = await getVerificationCode(proofConfig.apiUrl, proofConfig.token!, account.proofEmail, timestamp);
118
-
119
  await page.fill('input[type="tel"]', verificationCode);
120
  await page.click('input[type="submit"]');
121
  } catch (error) {
 
101
  const proof = [
102
  {
103
  "suffix": "godgodgame.com",
104
+ "apiUrl": "https://seedmail.igiven.com/api/latest-email",
105
  "token": env.PROOF_GODGODGAME_TOKEN
106
  },
107
  {
108
  "suffix": "igiven.com",
109
+ "apiUrl": "https://mail.igiven.com/api/latest-email",
110
  "token": env.PROOF_IGIVEN_TOKEN
111
  }
112
  ]
 
115
  const proofConfig = proof.find(p => p.suffix === suffix)!;
116
  console.log(suffix,proofConfig)
117
  const verificationCode = await getVerificationCode(proofConfig.apiUrl, proofConfig.token!, account.proofEmail, timestamp);
118
+ console.log(`verificationCode:${verificationCode}`)
119
  await page.fill('input[type="tel"]', verificationCode);
120
  await page.click('input[type="submit"]');
121
  } catch (error) {