大腦不疲勞
Google OAuth Verification

OAuth Verification 清單

一般 Google 登入已拆成低風險基本 scope;Calendar / Tasks 整合因為需要敏感 scope,若要開放給所有使用者,仍需要完成 Google OAuth verification。

最後更新:2026-05-23

目前 OAuth 架構

  • 一般登入 provider:google。
  • 一般登入 scopes:openid、email、profile。
  • 整合 provider:google-integration。
  • 整合 scopes:openid、email、profile、calendar.events、tasks。

各 scope 用途

  • openid / email / profile:辨識登入狀態與顯示使用者基本帳號資訊。
  • calendar.events:在使用者主動按下按鈕後,將練習排入使用者的主要 Google Calendar。
  • tasks:在使用者主動按下按鈕後,將練習建立成 Google Tasks 提醒。

不會做的事

  • 不讀取或同步使用者全部健康紀錄到 Google。
  • 不出售 Google 使用者資料。
  • 不把 Calendar / Tasks 資料用於廣告、信用評分或任何非使用者要求的用途。
  • 不在使用者未按下排程按鈕時建立 Calendar event 或 Task。

審核前必備公開 URL

Google Cloud Console 檢查項目

  1. OAuth app name 使用「大腦不疲勞」。
  2. Support email 與 developer contact email 可正常收信。
  3. Authorized domain 包含 brain-recovery.zeabur.app。
  4. 一般登入 client 只設定 callback:/api/auth/callback/google。
  5. 整合 client 設定 callback:/api/auth/callback/google-integration。
  6. Calendar API 與 Tasks API 已啟用。
  7. 測試帳號已加入 OAuth test users,直到正式通過審核。

審核影片腳本

  1. 打開首頁,展示不用登入也可使用檢測與打卡。
  2. 進入設定頁,展示一般 Google 登入只要求基本帳號資訊。
  3. 進入排程頁,點選「連接 Google 行事曆 / Tasks」。
  4. 展示授權後使用者主動點擊,App 才建立 Calendar event 或 Task。
  5. 展示資料刪除頁與 Google 授權撤銷方式。

目前狀態

一般登入已可用低風險 scope 開放。Calendar / Tasks 若要讓所有 Google 使用者使用,下一步是用本頁與隱私權政策送 Google OAuth verification。