OAuth & API token
The Factorial Developer Portal manages the OAuth flow for you. When a customer installation is
provisioned, the platform sets a FACTORIAL_TOKEN in that deploy-{deployId} workspace, so
your processes can assume it exists — no token handling in your code.
FactorialClient reads this token automatically:
const { FactorialClient } = fcode.import("FactorialClient");
// FACTORIAL_TOKEN is already present in the deploy workspace.const client = await FactorialClient.create();If you need the raw token (for a call the client doesn’t cover yet), read it from the workspace’s Team Variables:
const token = fcode.env.FACTORIAL_TOKEN;