Magnus MüllerM
Convex Community2y ago
3 replies
Magnus Müller

convex-auth template error getAuthUserId

When I install the Convex Auth template https://www.convex.dev/templates/convex-auth
with
npm create convex -- -t get-convex/convex-auth-example
, follow the setup and then do
npx convex dev
I get the error:

convex/messages.ts:1:10 - error TS2305: Module '"@convex-dev/auth/server"' has no exported member 'getAuthUserId'.

1 import { getAuthUserId } from "@convex-dev/auth/server";
           ~~~~~~~~~~~~~
convex/users.ts:2:10 - error TS2305: Module '"@convex-dev/auth/server"' has no exported member 'getAuthUserId'.

2 import { getAuthUserId } from "@convex-dev/auth/server";
Convex Auth is a library for implementing authentication directly within your Convex backend. This allows you to authenticate users without needing an authentication service or even a hosting server. Your application can be a React web app served from a CDN or a React Native mobile app.
Convex Auth
Was this page helpful?