Overview
Gmail integration allows PassAgent to read password reset emails during automated reset flows. The integration uses Google OAuth2 with minimal scopes.OAuth flow
Initiate authorization
Start the Gmail OAuth2 flow. Returns a URL to redirect the user to Google’s consent screen.200 OK:
https://www.googleapis.com/auth/gmail.readonly— read email contenthttps://www.googleapis.com/auth/gmail.modify— mark messages as read
The
gmail.modify scope is requested only to mark reset emails as read after processing. PassAgent never sends email on your behalf.OAuth callback
Handles the OAuth2 callback from Google after user authorization.Disconnect
Remove the Gmail integration and delete stored OAuth tokens.200 OK:
Refresh tokens
Manually refresh Gmail OAuth tokens. Tokens are refreshed automatically during reset flows, but this endpoint allows manual refresh.200 OK:
Email processing
During a password reset flow, PassAgent monitors your Gmail inbox for reset emails:- Polling: checks for new emails matching the service’s known sender addresses
- Parsing: extracts reset links from email HTML and text content
- Following: navigates to the reset link in the automated browser
- Cleanup: marks the processed email as read