edgedb-js icon indicating copy to clipboard operation
edgedb-js copied to clipboard

EdgeDB Auth: Nuxt

Open beerose opened this issue 1 year ago • 5 comments

Create and publish an auth helper package for Nuxt.

Related: https://github.com/edgedb/edgedb-js/issues/757

beerose avatar Feb 13 '24 19:02 beerose

Hi! I would gladly help develop this. There's currently a Nuxt module for EdgeDB, do you plan on creating a new module entirely for this? Or could you use the existing one?

mitjans avatar May 02 '24 18:05 mitjans

@mitjans

I think we would publish something less opinionated and standalone, more similar to the existing auth helper libraries that perhaps the nuxt-edgedb module could itself use to power its auth parts.

If you want to take this on, I'd be glad for the contribution! Let me know and I'll assign you and help guide a PR adding it to getting merged.

scotttrinh avatar May 02 '24 19:05 scotttrinh

What auth helper libraries are you currently using? What would be the desired behavior of this Nuxt Auth Module?

mitjans avatar May 04 '24 07:05 mitjans

@mitjans

What auth helper libraries are you currently using?

I mean the ones that exist in this monorepo, for instance the Next.js one.

What would be the desired behavior of this Nuxt Auth Module?

Expose an auth class/object that allows you to idiomatically handle the EdgeDB Auth flows so that the consumer of the library mostly has to just add the behavior for when a particular auth ceremony succeeds or fails and can easily respond when a new identity is created. See the behavior of the linked nextjs helper, or any of the other ones (remix, express, sveltekit, etc).

scotttrinh avatar May 06 '24 14:05 scotttrinh

Thanks! I'll look into the Next.js auth library, see how things are implemented and how they would be ported into Nuxt+Nitro during this week 👍

mitjans avatar May 07 '24 10:05 mitjans