LifeIsBoring
LifeIsBoring5mo ago

Convex Auth: Providers not configured

Even I have provided Providers in the auth.ts, there is still error like this
No description
26 Replies
erquhart
erquhart5mo ago
Welcome! Can you share your auth.ts source
LifeIsBoring
LifeIsBoringOP5mo ago
GitHub
finguru/convex/auth.ts at master · tiennguyentony/finguru
Contribute to tiennguyentony/finguru development by creating an account on GitHub.
LifeIsBoring
LifeIsBoringOP5mo ago
if not tell me!
erquhart
erquhart5mo ago
Oh I just meant paste it here Eg.,
import GitHub from "@auth/core/providers/github";
import { convexAuth } from "@convex-dev/auth/server";

export const { auth, signIn, signOut, store } = convexAuth({
providers: [GitHub],
});
import GitHub from "@auth/core/providers/github";
import { convexAuth } from "@convex-dev/auth/server";

export const { auth, signIn, signOut, store } = convexAuth({
providers: [GitHub],
});
hmm Do you have npx convex dev running?
LifeIsBoring
LifeIsBoringOP5mo ago
I believe it is running in another terminal
erquhart
erquhart5mo ago
That error sounds like it's not.
LifeIsBoring
LifeIsBoringOP5mo ago
I am running in the other terminal
No description
LifeIsBoring
LifeIsBoringOP5mo ago
and then run npm dev in other terminals
No description
Michal Srb
Michal Srb5mo ago
@LifeIsBoring I think you have "Github" instead of "github" in your React call to signIn function?
LifeIsBoring
LifeIsBoringOP5mo ago
I try both and they are the same error sadly
Michal Srb
Michal Srb5mo ago
Can you change the frontend to "github" and then show the error you get?
Michal Srb
Michal Srb5mo ago
GitHub
finguru/app/SignIn.tsx at master · tiennguyentony/finguru
Contribute to tiennguyentony/finguru development by creating an account on GitHub.
erquhart
erquhart5mo ago
Isn't that supposed to be type safe?
Michal Srb
Michal Srb5mo ago
Not (yet).
LifeIsBoring
LifeIsBoringOP5mo ago
Will do when I get back
LifeIsBoring
LifeIsBoringOP5mo ago
It goes to github now without the error but I thought it should be the github website login right ? Instead of 404
No description
Michal Srb
Michal Srb5mo ago
I would guess your Github OAuth app is misconfigured Your AUTH_GITHUB_ID is incorrect, please review the docs
LifeIsBoring
LifeIsBoringOP5mo ago
ah so is it like my real github id and password /
Michal Srb
Michal Srb5mo ago
You need to go to Google to set up OAuth, see https://authjs.dev/guides/configuring-github#registering-your-app
Auth.js | Configuring Github
Authentication for the Web
LifeIsBoring
LifeIsBoringOP5mo ago
Ah I understand thanks a lot!
Michal Srb
Michal Srb5mo ago
You're welcome!
LifeIsBoring
LifeIsBoringOP5mo ago
Are you in charge of hackathon questions ? or should I ask in another channel
Michal Srb
Michal Srb5mo ago
Ask in #hackathon
LifeIsBoring
LifeIsBoringOP5mo ago
Thanks

Did you find this page helpful?