
Description
Setup Flows Auth is an agent skill that wires authentication into a React app so it can talk to Cognite Data Fusion (CDF) inside Fusion. It is meant for migrating an existing React app to Flows, or for apps where no Flows auth is in place yet. The agent reads app.json to pick between two flows: when the infra field is "appsApi" it uses the Apps API with connectToHostApp from @cognite/app-sdk; otherwise it uses the classic Files API setup with DuneAuthProvider and useDune from @cognite/dune. If there is no app.json, the agent asks the user and defaults to the Apps API, which is the default for apps created with the Cognite CLI. Before acting, it reads package.json, the main entry file, vite.config.ts and app.json to decide whether any change is needed.…
Highlights
- Chooses Apps API or classic flow from app.json
- Uses @cognite/app-sdk or @cognite/dune as needed
- Asks the user when app.json is missing
- Reads existing config before changing anything
Ratings & Reviews
No ratings yet
Be the first to rate setup-flows-auth.
People also visit

auth0-react
Adding Auth0 login, logout, protected routes, or user sessions to a React SPA
setup-flows-auth FAQ
What does this skill do?
It sets up Flows authentication in a React app so the app can call CDF from inside Fusion.
How do I install it?
Run: npx skills add https://github.com/cognitedata/builder-skills --skill setup-flows-auth
How does it choose the auth flow?
From the infra field in app.json: "appsApi" means the Apps API flow with @cognite/app-sdk; anything else means the classic flow with @cognite/dune.
What if my app has no app.json?
The agent asks you, and defaults to the Apps API.
What were the security audit results?
On skills.sh: Gen Agent Trust Hub: Pass, Socket: Pass, Snyk: Pass.
What are the best setup-flows-auth alternatives?
Popular alternatives to setup-flows-auth include security, auth0-react and migrate-app-to-flows. See all setup-flows-auth alternatives












