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
nipunn
nipunn3y ago
Neat. Thanks for the feedback! Can you tell us more about specific use case? What do you want to interop with?
MapleLeaf 🍁
MapleLeaf 🍁OP3y ago
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.
ballingt
ballingt3y ago
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?
MapleLeaf 🍁
MapleLeaf 🍁OP3y ago
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 context
MapleLeaf 🍁
MapleLeaf 🍁OP3y ago
what 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
ballingt
ballingt3y ago
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
ian
ian3y ago
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...
fff9999
fff999914mo ago
Is it possible to do this now ? @MapleLeaf 🍁
MapleLeaf 🍁
MapleLeaf 🍁OP14mo ago
not as described in the OP, no
fff9999
fff999914mo ago
Noted thanks!

Did you find this page helpful?