feat(api): switch OAuth scope to gmail.modify
Enable archive, label, and draft CLI operations after users re-consent; keep the web UI read-only. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -17,7 +17,7 @@ export const GOOGLE_REDIRECT_URI =
|
||||
process.env.GOOGLE_REDIRECT_URI || "http://localhost:5173/callback";
|
||||
export const SESSION_SECRET = process.env.SESSION_SECRET || "";
|
||||
|
||||
export const GMAIL_SCOPE = "https://www.googleapis.com/auth/gmail.readonly";
|
||||
export const GMAIL_SCOPE = "https://www.googleapis.com/auth/gmail.modify";
|
||||
export const OAUTH_SCOPES = [
|
||||
GMAIL_SCOPE,
|
||||
"openid",
|
||||
|
||||
Reference in New Issue
Block a user