Danny I
CCConvex Community
ā¢Created by Danny I on 1/20/2025 in #support-community
github oauth stuck in redirect loop
Hello kind folks,
I am using github oauth and resend, like in the demo boilerplate project when initializing a convex app with NextJS, convex auth, github oauth, and hosting on Vercel.
In development, login works.
In production, login actually works, the database receives the correct user data from github, but the front end crashes.
Opening the network tab reveals a slew of 302 redirects, followed by 308 redirects.
I am using NextJS, hosting on Vercel, with a domain.
I've checked:
- The middleware js file
- The environment variables
- The github oauth app id and key
- For the homepage url I used my production domain, though it seems to work in dev either way.
- For the github, the callback url for convex, followed the set up documentation a few times step by step
- Maybe my convex server + client providers are wrong?
What did I miss?
Any ideas?
33 replies
CCConvex Community
ā¢Created by Danny I on 9/30/2024 in #support-community
Chat app, only one messages table?
Hi,
I am effectively working on a chat app, but, I am concerned that my messages table will have too many entries.
Is this something I should be concerned about?
3 replies
CCConvex Community
ā¢Created by Danny I on 9/23/2024 in #support-community
Sign up user with custom fields
(Using convex auth/Password)
Hey, so following the docs, I need custom fields for my users (who doesn't?), so I make a custom Password provider as specified for the password sign in/up function.
But now when I need to set up email verification, the custom Password provider is erroring, since it's not callable.
Code:
https://labs.convex.dev/auth/config/passwords#email-verification-setup
And the custom provider š¤·š»āāļø Does it only run on sign up? Is it okay to initialize values for new accounts here?
43 replies
CCConvex Community
ā¢Created by Danny I on 9/19/2024 in #support-community
How to check which user is signed in
Sorry all, I just can't find it in the docs.
I found an article but the method shown is now deprecated.
I'm using the convex auth implementation in react/expo, I assumed there would be a hook for the current user?
šš»āāļø
6 replies
CCConvex Community
ā¢Created by Danny I on 8/21/2024 in #support-community
Correct pattern for running a query onClick without re-running on re-render.
Hi, newbie in need of advice.
Using React(Native), I am taking a document name from a user via a textInput field and onClick I want to check if that document exists. I don't want to run the query everytime the user types something...
Can anyone advise me on the correct way to do this?
Thank you!
šš»āāļø
šš¼
3 replies