Rust-based Auth
Out of interest. Seeing convex is rust based. Why wasn't there a native rust implementation of auth?
I suppose the choice to go with auth.js is that there are more important things to do first?
On the backend auth (validating the JWT, etc.) is implemented in Rust. But for an auth library, ecosystem compatibility and programability are the top priorities.I didn't know that! I haven't yet gone through the code and assumed that due to auth.js being used. That's where the emphasis for the question was.
what aspects of auth might you expect to be implemented in Rust?creation, query and management of the JWT and refresh via the js SDK.
Rust SDKI'm not advocating for developing in rust. I have actually thought (deeply) about this, since I have a heavy rust backend. It's always just easier to do things in javascript.
It's always just easier to do things in javascript.It's real, Rust is pretty great language for building a database but very few would cite it as a favorite for business logicIt's probably due to having a much stronger dev exp with it, rather than in rust.
creation, query and management of the JWT and refresh via the js SDKThat makes sense, yeah if being an OAuth identity provider every becomes part of the core product we could do this. Today this is all userspace stuff though, it's just some JavaScript you're running on your database.
we have an npm libraryIs that the lib that's based on auth.js?
ctx.auth.getUserIdentity()