Rayy
CCConvex Community
•Created by Rayy on 6/3/2024 in #support-community
Getting adapter error with Next Auth and Convex in production.
Oh God, it was such a dumb error. I forgot to add my env variables in the production. 🙂
4 replies
CCConvex Community
•Created by Rayy on 6/3/2024 in #support-community
Getting adapter error with Next Auth and Convex in production.
This is the error I am getting,
This is probably the function returning the error,
But I have checked and I am passing in my environment variables a secret key as
CONVEX_AUTH_ADAPTER_SECRET
4 replies
CCConvex Community
•Created by Rayy on 5/21/2024 in #support-community
Unable to authenticate Convex with next auth when provider is Credentials.
How should I implement that to my existing code? Can you help me with it.
19 replies
CCConvex Community
•Created by Rayy on 5/21/2024 in #support-community
Unable to authenticate Convex with next auth when provider is Credentials.
Hey @Michal Srb ,
This is the thread I came across https://github.com/nextauthjs/next-auth/issues/3970
So apparently the credentials provider does not fire the session callback.
19 replies
CCConvex Community
•Created by Rayy on 5/21/2024 in #support-community
Unable to authenticate Convex with next auth when provider is Credentials.
Will be doing that. Thanks for the time tho.
19 replies
CCConvex Community
•Created by Rayy on 5/21/2024 in #support-community
Unable to authenticate Convex with next auth when provider is Credentials.
This is what I get after adding debug as true
19 replies
CCConvex Community
•Created by Rayy on 5/21/2024 in #support-community
Unable to authenticate Convex with next auth when provider is Credentials.
But it works when I set the session strategy as jwt, and in the jwt callback return the token. I feel like there is something I am misunderstanding here.
19 replies
CCConvex Community
•Created by Rayy on 5/21/2024 in #support-community
Unable to authenticate Convex with next auth when provider is Credentials.
The signIn callback, logs the user and account
But the sessions callback logs null.
19 replies
CCConvex Community
•Created by Rayy on 5/21/2024 in #support-community
Unable to authenticate Convex with next auth when provider is Credentials.
It does, i guess.
getUserByEmail
is actually a wrapper of the query being fetched.
I have a register form which calls the register action on submit.
Each function is actually a wrapper of the query or mutation being called from convex.
My applicaiton registers the user just like it should, and I can see the data in the convex database, and I am able to login with the same too without any issues.
I just am not able to authenticate it with Convex, so that I can authenticate my Convex functions.19 replies
CCConvex Community
•Created by Rayy on 5/21/2024 in #support-community
Unable to authenticate Convex with next auth when provider is Credentials.
Here you go.
19 replies
CCConvex Community
•Created by Rayy on 5/21/2024 in #support-community
Unable to authenticate Convex with next auth when provider is Credentials.
19 replies
CCConvex Community
•Created by Rayy on 5/20/2024 in #support-community
How to access mutations/queries from authAdapters in next auth convex setup?
Solved it @Michal Srb , thanks again.
6 replies
CCConvex Community
•Created by Rayy on 5/20/2024 in #support-community
How to access mutations/queries from authAdapters in next auth convex setup?
It was that easy, lol. Thank you.
I am getting this typescript error tho?
6 replies
CCConvex Community
•Created by Rayy on 5/20/2024 in #support-community
How to access mutations/queries from authAdapters in next auth convex setup?
@Michal Srb, Next.js server
6 replies
CCConvex Community
•Created by Rayy on 5/19/2024 in #support-community
What is the difference between preloading query vs fetching queries in server components?
Ah, that explains it. Thank you.
3 replies
CCConvex Community
•Created by Rayy on 1/29/2024 in #support-community
Is there a way around to call actions from non functional components?
That’s so amazing. 🔥
9 replies
CCConvex Community
•Created by Rayy on 3/2/2024 in #support-community
How to get results from paginate Queries?
Ahh got it, just had to scroll all the way to the bottom to check how to use
cursor
. Thanks tho.3 replies
CCConvex Community
•Created by Hosna Qasmei on 3/2/2024 in #support-community
Is it possible to call a mutation in a Next.js API route?
Have you tried
fetchMutation
?
You can check the docs in here, https://docs.convex.dev/client/react/nextjs/server-rendering3 replies
CCConvex Community
•Created by Rayy on 2/28/2024 in #support-community
How to handle errors in scheduled functions and display that error to the frontend?
This will work just fine, I guess. Will try it.
Thanks guys. 🙂
13 replies
CCConvex Community
•Created by Rayy on 2/28/2024 in #support-community
How to handle errors in scheduled functions and display that error to the frontend?
About that, I'd need to get the id of the scheduled function and then query the status of the scheduled function to get the error message, right?
13 replies