Skip to content

google

Google OAuth2 token management with proxy APIs for Gmail, Drive, Calendar, and Sheets. Manages token refresh automatically. Pro plugin.

Requires: Basic license tier or higher. nself license set nself_pro_...

Terminal window
nself license set nself_pro_xxxxx...
nself plugin install google

Provides Google OAuth2 token management and proxy APIs for Gmail, Drive, Calendar, and Sheets. Handles automatic token refresh so your application never needs to manage expiry. Exposes unified REST endpoints for all four Google services under a single authenticated proxy.

Env VarDefaultDescription
GOOGLE_PORT3717Port the Google plugin service listens on
GOOGLE_CLIENT_IDnoneGoogle OAuth2 client ID
GOOGLE_CLIENT_SECRETnoneGoogle OAuth2 client secret
GOOGLE_REDIRECT_URInoneOAuth2 redirect URI registered in Google Cloud Console
PortPurpose
3717Google plugin HTTP service

2 tables added to your Postgres database.

  • np_google_tokens: OAuth2 access and refresh tokens per user
  • np_google_sync_log: Sync event log for Google API operations
RouteDescription
/google/Proxied to Google plugin service on port 3717