Skip to content

[WIP] Add Connect Gmail button with forwarding functionality - #49

Closed
harshithpabbati with Copilot wants to merge 1 commit into
mainfrom
copilot/add-connect-gmail-button
Closed

[WIP] Add Connect Gmail button with forwarding functionality#49
harshithpabbati with Copilot wants to merge 1 commit into
mainfrom
copilot/add-connect-gmail-button

Conversation

Copilot AI commented Mar 3, 2026

Copy link
Copy Markdown
Contributor
  • Explore repository structure
  • Add Google OAuth env vars to env.example (GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET)
  • Create app/api/gmail/oauth/route.ts – generates Google OAuth URL with gmail.settings.sharing scope and redirects
  • Create app/api/gmail/callback/route.ts – handles OAuth callback, exchanges code for access token, stores in cookie, redirects back to admin page
  • Create app/api/gmail/forwarding/route.ts – POST handler that calls Gmail API to add forwarding address + enable auto-forwarding
  • Create components/organization/admin/GmailForwarding.tsx – UI section with "Connect Gmail" button, forwarding email input, "Enable Forwarding" button, and status messages
  • Update components/organization/admin/AdminPage.tsx to include the new GmailForwarding section
  • Run lint to validate changes

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

@vercel

vercel Bot commented Mar 3, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
answerify Ready Ready Preview, Comment Mar 3, 2026 11:07pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants