ablobwave poking in again one of my
:ablobwave: poking in again. one of my greater wishlist items is a way to do auth without using OpenID. is that eventually coming down the pipeline?
10 Replies
Neat. Thanks for the feedback!
Can you tell us more about specific use case? What do you want to interop with?
my app only supports Discord as an authentication method, and before adding Convex, I had a pretty simple setup with remix auth (https://github.com/sergiodxa/remix-auth)
I mainly just want to avoid taking on additional complexity and baggage from Auth0
GitHub
GitHub - sergiodxa/remix-auth: Simple Authentication for Remix
Simple Authentication for Remix. Contribute to sergiodxa/remix-auth development by creating an account on GitHub.
It looks like Discord uses OAuth2, so I've noted that feature request (OAuth without OpenID), but also should I interpret this as wanting a passport-like lib for auth with Convex?
kinda. I think what I want is a way to "customize" convex's
auth
value, maybe like:
- in one place, tell convex what auth means, by providing a function which does a DB query or something
- the convex react client can accept some option for an auth key, sends it to the convex backend on connection, then convex uses that + the custom auth function to populate the auth
contextwhat I'm describing is a slightly simpler form of how Liveblocks (very flexibly!) handles it https://liveblocks.io/docs/guides/authentication/next-js
Guides - Authentication with Next.js - Liveblocks documentation
Learn how to setup a Liveblocks authentication endpoint with Next.js
thanks, this is helpful to hear — i've definitely been thinking about session state more generally, but defining what auth means like this is neat
Update on session state: I've posted something on implementing session state on top of the existing Convex primitives. I wonder if this could get some of what you're after, outside of Convex auth: https://discord.com/channels/1019350475847499849/1068664851980882103
https://stack.convex.dev/sessions-wrappers-as-middleware
Sessions: Wrappers as "Middleware"
How to implement session storage with Convex, using some helper functions we wrote. While most of your data is associated with a user or another docum...
Is it possible to do this now ? @MapleLeaf 🍁
not as described in the OP, no
Noted thanks!