A comprehensive technical resource for implementing, debugging, and optimizing OAuth 2.0 authentication and data synchronization in Twenty CRM.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install twenty-oauth-mastery
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install twenty-oauth-mastery using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
This skill provides deep technical expertise for developers working with Twenty CRM, focusing specifically on the complex OAuth 2.0 lifecycle. It bridges the gap between basic authentication and production-grade features like automated Gmail and Calendar synchronization. By utilizing this resource within Openclaw Skills, developers can ensure secure, reliable token management and domain-restricted access control.
The content covers the entire stack from NestJS backend strategies to frontend token processing effects. It is designed to help teams resolve common production hurdles such as redirect loops, missing sync triggers, and complex domain validation rules, ensuring a seamless user onboarding experience for self-hosted and cloud-managed CRM instances.
Configure your environment with the necessary provider credentials and enable synchronization modules in your environment file.
# Set up Google OAuth environment variables
export AUTH_GOOGLE_ENABLED=true
export AUTH_GOOGLE_CLIENT_ID=your-client-id
export AUTH_GOOGLE_CLIENT_SECRET=your-client-secret
export AUTH_GOOGLE_CALLBACK_URL=https://yourdomain.com/auth/google/redirect
# Enable Sync Providers
export CALENDAR_PROVIDER_GOOGLE_ENABLED=true
export MESSAGING_PROVIDER_GMAIL_ENABLED=true
# Rebuild the server to apply changes
npx nx build twenty-server
docker restart twenty-container
The skill manages data across specific directory structures and database tables to maintain authentication state and sync configurations.
| Component | Type | Description |
|---|---|---|
| auth/strategies | Directory | Contains Passport.js implementation for Google and Microsoft. |
| workspaceMetadata | DB Table | Stores approved access domains and workspace-level auth settings. |
| connectedAccount | DB Table | Maps users to their OAuth tokens and provider handles. |
| messageChannel | DB Table | Tracks the status and progress of email synchronization tasks. |
Loading
Advanced JSON5 configuration management for OpenClaw AI agents featuring schema validation, merge patching, and environment variable substitution.

A professional-grade research agent that searches X for real-time developer discussions, product feedback, and industry trends.

A lightweight monitoring tool to track, limit, and optimize token expenditure across automated AI workflows.

A fast, lightweight static analysis tool for detecting vulnerabilities in Solidity smart contracts using the Slither engine.

A specialized security toolset to detect and neutralize prompt injection attacks hidden within external content like emails, web pages, and documents.

An automated intelligence tool that scans social media and the web to find, score, and rank profitable business opportunities.








































