AmohPrince
Explore posts from serversCCConvex Community
•Created by Spioune on 1/1/2025 in #support-community
Custom auth
Thanks @Spioune . I found out a way here https://docs.convex.dev/auth/advanced/custom-auth it worked for me
12 replies
CCConvex Community
•Created by Spioune on 1/1/2025 in #support-community
Custom auth
Hello @Tom and @sshader . I am doing almost the exact same thing with @Spioune . Here is my context. I have already setup a fully custom Oauth flow with google, fully barebones no library just nextjs and ironsession to save the session info. So to make convex aware of my currently signed in user I am using the below pattern
that almost works. I get a valid token in my own unique ways and return it. but i get the error message
Failed to authenticate: "No auth provider found matching the given token", check your server auth config
okay. now with my many searches online i think I am supposed to follow the link shared by @sshader that guides setting up with convex auth but in my following it seems convex is kind of tied to auth.js
especially the part of getting the Google provider.
Bro I cannot stress enough how much I want to avoid that library. I do not want to see it at all in my codebase. How can I avoid the error without having to install AuthJS.
Here is my current auth.config.ts
12 replies
CCConvex Community
•Created by AmohPrince on 10/17/2023 in #show-and-tell
A bidding Platform
I know the dust has settled but Thanks you guys 🥺. This is the best thing I have heard all day ❤️
4 replies
CCConvex Community
•Created by AmohPrince on 9/8/2023 in #support-community
are internalMutations only callable from actions?.
but its an internal mutation dont you think its a bad practice?
9 replies
CCConvex Community
•Created by AmohPrince on 9/8/2023 in #support-community
are internalMutations only callable from actions?.
@Web Dev Cody 😁
9 replies
CCConvex Community
•Created by AmohPrince on 9/8/2023 in #support-community
are internalMutations only callable from actions?.
Would you mind helping me figure why the internalMutation is not running
9 replies
CCConvex Community
•Created by AmohPrince on 9/8/2023 in #support-community
are internalMutations only callable from actions?.
im saving the user by an effect in a react hook.
9 replies
CCConvex Community
•Created by AmohPrince on 9/8/2023 in #support-community
are internalMutations only callable from actions?.
Thanks mahn. While you are here im running into a tiny bug. Im trying to run an internal mutation when a user signs into my app for the first time. My logic following the docs was to check if a user exists then if not running the internal mutation to the messages table. This logic was working yesterday but right now it isnt. I cant figure it out. Even if the users table is clean it seems the user object is always defined. why is that? here is my logic.
9 replies