Nick
Nick
CCConvex Community
Created by Nick on 4/18/2025 in #support-community
How to use redirectTo with Convex Auth with Discord
I managed to get it running like this: In convex auth:
bun link
bun install
bun install convex@latest
bun run build
bun link
bun install
bun install convex@latest
bun run build
In another project:
bun link @convex-dev/auth
bun install
bun install convex@latest
bun run dev
bun link @convex-dev/auth
bun install
bun install convex@latest
bun run dev
I had to ensure they were both using the exact same version of convex because otherwise I ran into tons of typescript errors. And I have to bun run build convex auth each time I make a change for my other project to see it. Is there a way to get it to watch and build continuously? Anyway, implementing this change is proving to be difficult because convex auth relies more on cookies than I expected. I can't rely on cookies if I'm initiating authentication from a button in discord. I have a few options: * Switch to Clerk. Maybe it will support discord authentication buttons without cookies? * Link directly to my app and then initiate signIn automatically, redirecting to the Discord UI and using the cookie way of doing it. This is better if you're already signed in to discord in your browser, since it can bypass it entirely if you're already in, but in the case where you're not logged in or are logged in as the wrong user it's worse, since hitting the button in discord gets you most of the way there immediately. * Modify Convex Auth to work even if the state is passed in from the state parameter and not by consulting cookies. Should the cookie-based state behavior still even exist? Is it better to replace it by always piping all the props through the state param? I noticed that even if it is using cookies, it can use the state param for something if you activate that in checks...
8 replies
CCConvex Community
Created by Nick on 4/18/2025 in #support-community
How to use redirectTo with Convex Auth with Discord
I'm having trouble setting up convex auth for development in a way where convex sees my changes. Is there documentation on this?
8 replies
CCConvex Community
Created by Nick on 1/31/2025 in #general
Convex Auth
Looks like it's a private field.
31 replies
CCConvex Community
Created by Nick on 1/31/2025 in #general
Convex Auth
So, how do I access the JWT on the client side?
31 replies
CCConvex Community
Created by Nick on 1/31/2025 in #support-community
`use node` Convex Auth provider
Porting it to SubtleCrypto worked. Thanks!
7 replies
CCConvex Community
Created by Nick on 1/31/2025 in #support-community
`use node` Convex Auth provider
7 replies
CCConvex Community
Created by Nick on 1/31/2025 in #support-community
`use node` Convex Auth provider
I'm using a library that uses node's crypto library. I suppose I could fork it.
7 replies
CCConvex Community
Created by Nick on 1/31/2025 in #general
Convex Auth
31 replies
CCConvex Community
Created by Nick on 1/31/2025 in #general
Convex Auth
the user id isn't in the jwt? It is if I use Clerk though
31 replies
CCConvex Community
Created by Nick on 1/31/2025 in #general
Convex Auth
that seems really unnecessary and would be slower than not doing an extra query
31 replies
CCConvex Community
Created by Nick on 1/31/2025 in #general
Convex Auth
the server double checks
31 replies
CCConvex Community
Created by Nick on 1/31/2025 in #general
Convex Auth
no
31 replies
CCConvex Community
Created by Nick on 1/31/2025 in #general
Convex Auth
on the client side
31 replies
CCConvex Community
Created by Nick on 1/31/2025 in #general
Convex Auth
all i want to do is check if current user id = something's owner id, and show UI based on that
31 replies
CCConvex Community
Created by Nick on 1/31/2025 in #general
Convex Auth
in react?
31 replies
CCConvex Community
Created by Nick on 1/31/2025 in #general
Convex Auth
so is there a function to parse out the info from the jwt?
31 replies
CCConvex Community
Created by Nick on 1/28/2025 in #support-community
`tsc -b` fails because @convex/_generated references server side code
oh, I was told that I should put the shared code inside the convex directory. Does convex still work if it references code outside its directory? I guess it must, since it can use node_modules...
8 replies