fix: tweak the oauth scope to be a little bit better

This commit is contained in:
2026-07-02 14:50:34 +09:30
parent ef9d7cf7f8
commit 34c536c2d8
10 changed files with 315 additions and 12 deletions
+6 -1
View File
@@ -15,11 +15,16 @@ export const GOOGLE_CALENDAR_OAUTH_CALLBACK = `${ACCOUNTS_BASE}/auth/google/cale
export const GOOGLE_CALENDAR_TOKEN_URL = `${ACCOUNTS_BASE}/api/bsplus/google/calendar/token`;
export const GOOGLE_CALENDAR_REFRESH_URL = `${ACCOUNTS_BASE}/api/bsplus/google/calendar/refresh`;
export const GOOGLE_CALENDAR_SCOPE = "https://www.googleapis.com/auth/calendar.events";
/** App-owned secondary calendar only — cannot read or modify the user's other calendars. */
export const GOOGLE_CALENDAR_SCOPE = "https://www.googleapis.com/auth/calendar.app.created";
export const GOOGLE_AUTH_URL = "https://accounts.google.com/o/oauth2/v2/auth";
export const GOOGLE_CALENDAR_API = "https://www.googleapis.com/calendar/v3";
export const BSPLUS_GOOGLE_CALENDAR_NAME = "BetterSEQTA+ Timetable";
export const BSPLUS_GOOGLE_CALENDAR_DESCRIPTION =
"School timetable lessons synced by the BetterSEQTA+ extension.";
export const BSPLUS_GOOGLE_CALENDAR_EVENT_PROP = "bsplusSeqtaKey";
export const GOOGLE_CALENDAR_SYNC_WEEKS = 12;