Actions5
Export Credential Values
AI-generatedSummary
Read ChatGPT OAuth token values from the node’s Codex auth.json and return them for optional backup in an n8n credential. You can set how long it waits for tokens to appear; it also reports whether auth is complete and where the Codex home is.
Inputs
- Wait Time (Seconds) — How long to wait for auth.json tokens before exporting; defaults to 180 seconds.
Output shape
A single n8n item containing accessToken, refreshToken, idToken, accountId, expiresAt, hasAgentIdentity, hasCompleteAuth, codexHome, and instructions.
Requires an auth.json with ChatGPT tokens, including a valid ID token; otherwise the operation errors. If the wait expires before tokens are available, it also errors. Credentials are optional for running the Nils Codex node after login.
