cbo
cbo6d ago

401 Unauthorized: MissingAccessToken: An access token is required for this command.

Hello. I am following the guide here: https://docs.convex.dev/auth/authkit/ but when I try to run pnpm dev I get a crash with the following message:
npx convex dev
✔ Started running a deployment locally at http://127.0.0.1:3210 and saved its name as CONVEX_DEPLOYMENT to .env.local
Run `npx convex login` at any time to create an account and link this deployment.

Write your Convex functions in convex/
Give us feedback at https://convex.dev/community or support@convex.dev
View the Convex dashboard at http://127.0.0.1:6790/?d=anonymous-local

✖ Checking for associated AuthKit environment...

✖ Error fetching POST https://api.convex.dev/api/workos/has_associated_workos_team 401 Unauthorized: MissingAccessToken: An access token is required for this command.
Authenticate with `npx convex dev`
npx convex dev
✔ Started running a deployment locally at http://127.0.0.1:3210 and saved its name as CONVEX_DEPLOYMENT to .env.local
Run `npx convex login` at any time to create an account and link this deployment.

Write your Convex functions in convex/
Give us feedback at https://convex.dev/community or support@convex.dev
View the Convex dashboard at http://127.0.0.1:6790/?d=anonymous-local

✖ Checking for associated AuthKit environment...

✖ Error fetching POST https://api.convex.dev/api/workos/has_associated_workos_team 401 Unauthorized: MissingAccessToken: An access token is required for this command.
Authenticate with `npx convex dev`
I am using the local version of convex without a connection to an account for development. is there no way to do this? Or do I have to use an online database for dev work now? That would be a bummer...
Convex & WorkOS AuthKit | Convex Developer Hub
Integrate WorkOS AuthKit authentication with Convex
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?