jem
CCConvex Community
•Created by jem on 5/4/2023 in #general
Custom Auth (for ATprotocol)
oops idk how i missed this. i can decode the JWT later today 🙂
17 replies
CCConvex Community
•Created by jem on 5/4/2023 in #general
Custom Auth (for ATprotocol)
this is the main auth provider btw - babecottage/atproto-react is my wrapper for it https://github.com/bluesky-social/atproto/tree/main/packages/api
17 replies
CCConvex Community
•Created by jem on 5/4/2023 in #general
Custom Auth (for ATprotocol)
which is to say - i tried running convex add auth but i have no idea what to tell it
17 replies
CCConvex Community
•Created by jem on 5/4/2023 in #general
Custom Auth (for ATprotocol)
@Michal Srb soooo maybe this just won’t work, but my auth provider hasn’t (currently) implemented oauth - i’m kinda hazy on it but it’s a login with a username & password in their React client, and it returns a JWT (which I wrapped in a provider and wrote a translator for it to work with ConvexClientWithAuth)
17 replies
CCConvex Community
•Created by jem on 5/4/2023 in #general
Custom Auth (for ATprotocol)
@Indy @Michal Srb oop should i move this to the support channel? srry i can’t read
17 replies
CCConvex Community
•Created by jem on 5/4/2023 in #general
Custom Auth (for ATprotocol)
the jwt seems to be valid but i'm at the edges of my knowledge with this stuff 🙂
17 replies
CCConvex Community
•Created by jem on 5/4/2023 in #general
Custom Auth (for ATprotocol)
update: set up a whole buncha breakpoints and hit a dead end - it looks like WebSocketManager is receiving AuthError from the server when it calls Authenticate with my JWT. not sure what to try next!
17 replies
CCConvex Community
•Created by jem on 5/4/2023 in #general
Custom Auth (for ATprotocol)
also my auth provider - getToken returns a (stringified?) JWT
17 replies
CCConvex Community
•Created by jem on 5/4/2023 in #general
Custom Auth (for ATprotocol)
uh locally I also have my convex folder with a couple simple schemas but I haven't commited that yet
17 replies
CCConvex Community
•Created by jem on 5/4/2023 in #general
Custom Auth (for ATprotocol)
pushed what I have right now - to log in you need an atproto/bluesky account but my provider does work 🙂 https://github.com/babecottage/atproto-convex/blob/main/hooks/useAuthFromATP.ts
17 replies