Code Monkey home page Code Monkey logo

Comments (12)

timothymiller avatar timothymiller commented on May 20, 2024 1

I'm hoping D1 reaches a stable release soon. It's really the best option from a cost and latency point of view.

Prisma is not supported in Cloudflare Workers because it's a chunky boi in terms of bundle size.

from t4-app.

agustif avatar agustif commented on May 20, 2024 1

@rickylabs indeed i wanted to implement it but i only have one request for it and not too much bandwidth, i ve asked multiple time for people if they would be willing to open a pr since i ve done the heavy lifting in the plugin, but nobody has done it so far 😅

I totally understand, that's why I'm trying to put everyone in the same loop so we can manage together to implement it someday because I'm sure there are a lot of people that could benefit from it.

@agustif I'll keep you posted directly into @adrien2p issue.

@adrien2p any guidance on how we could start that implementation with your plugin ?

Thanks Ricky, appreciate you putting me in the radar of it, I will be trying to do this in an open repo, The plan is to copy the implementation for auth0 and go from there, adding one of the available passport-jwt npm packages for it.

I already spoke with Adrien and he advised me so, so we could probably collaborate on this if you're up for it. I'll try to push a starting PR today to my own for of medusa-plugins and we can see from there

PS: Added my email on my GH bio in case you want to reach.

Very much WIP haven't finished or tested it yet: https://github.com/agustif/medusa-plugins/tree/feat-supabase-auth

from t4-app.

timothymiller avatar timothymiller commented on May 20, 2024 1

I've added an FAQ page answering the main questions from this thread.

For additional discussion on medusa and supabase, feel free to open a thread in the Discord server.

from t4-app.

timothymiller avatar timothymiller commented on May 20, 2024

NextAuth.js is web only, unfortunately.

from t4-app.

agustif avatar agustif commented on May 20, 2024

NextAuth.js is web only, unfortunately.

Ooops, right, quite the oversight for my part, I assumed it would be by now let's hope some day they get there. Supabase auth works nicely for me and I always can self-host it.

I'm hoping D1 reaches a stable release soon. It's really the best option from a cost and latency point of view.

I will have to try it.

Prisma is not supported in Cloudflare Workers because it's a chunky boi in terms of bundle size.

I might check out using drizzle with pg for my needs, but I'm working alongside another project which already uses pg for now and not sqlite (medusajs, fwiw) and I think It would be best to keep things as simple as possible.

Looking into integrating the supabase auth into a medusa plugin for it to handle the auth of my frontend app built with t4

It's totally fine tho, the modular aspect of the codebase makes it easy to replace any package for whatever you want with your own dependencies, it's a marvel actually how modularly it all fits like lego's or puzzle pieces into ∑hatever you're building

For now I'll try to just re-use as much from medusa for the backend and see if I need more when I reach that.

from t4-app.

rickylabs avatar rickylabs commented on May 20, 2024

NextAuth.js is web only, unfortunately.

Ooops, right, quite the oversight for my part, I assumed it would be by now let's hope some day they get there. Supabase auth works nicely for me and I always can self-host it.

I'm hoping D1 reaches a stable release soon. It's really the best option from a cost and latency point of view.

I will have to try it.

Prisma is not supported in Cloudflare Workers because it's a chunky boi in terms of bundle size.

I might check out using drizzle with pg for my needs, but I'm working alongside another project which already uses pg for now and not sqlite (medusajs, fwiw) and I think It would be best to keep things as simple as possible.

Looking into integrating the supabase auth into a medusa plugin for it to handle the auth of my frontend app built with t4

It's totally fine tho, the modular aspect of the codebase makes it easy to replace any package for whatever you want with your own dependencies, it's a marvel actually how modularly it all fits like lego's or puzzle pieces into ∑hatever you're building

For now I'll try to just re-use as much from medusa for the backend and see if I need more when I reach that.

We are trying to achieve exactly the same thing with medusa and supabase

We opened a discussion about that back in february (adrien2p/medusa-plugins#57).

@adrien2p first opened an issue for medusa-plugin-auth (adrien2p/medusa-plugins#58) before closing it a few days ago.

I assume we'll need to implement it ourselves. I'll let you know if I have some time to take care of that, otherwise feel free to share your work I would be happy to help you on that !

from t4-app.

adrien2p avatar adrien2p commented on May 20, 2024

@rickylabs indeed i wanted to implement it but i only have one request for it and not too much bandwidth, i ve asked multiple time for people if they would be willing to open a pr since i ve done the heavy lifting in the plugin, but nobody has done it so far 😅

from t4-app.

agustif avatar agustif commented on May 20, 2024

Thank you @rickylabs I wasn't aware of this, happy to chat and share notes we'll be looking to implement this.

@rickylabs indeed i wanted to implement it but i only have one request for it and not too much bandwidth, i ve asked multiple time for people if they would be willing to open a pr since i ve done the heavy lifting in the plugin, but nobody has done it so far 😅

Hi Adrien I had not seen that, I'd be happy to open a PR myself and get any guidance from you we might need to get it merged.

It didn't occur to me that it might be already working on it

from t4-app.

rickylabs avatar rickylabs commented on May 20, 2024

@rickylabs indeed i wanted to implement it but i only have one request for it and not too much bandwidth, i ve asked multiple time for people if they would be willing to open a pr since i ve done the heavy lifting in the plugin, but nobody has done it so far 😅

I totally understand, that's why I'm trying to put everyone in the same loop so we can manage together to implement it someday because I'm sure there are a lot of people that could benefit from it.

@agustif I'll keep you posted directly into @adrien2p issue.

@adrien2p any guidance on how we could start that implementation with your plugin ?

from t4-app.

timothymiller avatar timothymiller commented on May 20, 2024

NextAuth.js is web only, unfortunately.

Ooops, right, quite the oversight for my part, I assumed it would be by now let's hope some day they get there. Supabase auth works nicely for me and I always can self-host it.

I'm hoping D1 reaches a stable release soon. It's really the best option from a cost and latency point of view.

I will have to try it.

Prisma is not supported in Cloudflare Workers because it's a chunky boi in terms of bundle size.

I might check out using drizzle with pg for my needs, but I'm working alongside another project which already uses pg for now and not sqlite (medusajs, fwiw) and I think It would be best to keep things as simple as possible.

Looking into integrating the supabase auth into a medusa plugin for it to handle the auth of my frontend app built with t4

It's totally fine tho, the modular aspect of the codebase makes it easy to replace any package for whatever you want with your own dependencies, it's a marvel actually how modularly it all fits like lego's or puzzle pieces into ∑hatever you're building

For now I'll try to just re-use as much from medusa for the backend and see if I need more when I reach that.

Are you making an ecommerce app with medusa backend and t4-app frontend?

from t4-app.

agustif avatar agustif commented on May 20, 2024

NextAuth.js is web only, unfortunately.

Ooops, right, quite the oversight for my part, I assumed it would be by now let's hope some day they get there. Supabase auth works nicely for me and I always can self-host it.

I'm hoping D1 reaches a stable release soon. It's really the best option from a cost and latency point of view.

I will have to try it.

Prisma is not supported in Cloudflare Workers because it's a chunky boi in terms of bundle size.

I might check out using drizzle with pg for my needs, but I'm working alongside another project which already uses pg for now and not sqlite (medusajs, fwiw) and I think It would be best to keep things as simple as possible.
Looking into integrating the supabase auth into a medusa plugin for it to handle the auth of my frontend app built with t4
It's totally fine tho, the modular aspect of the codebase makes it easy to replace any package for whatever you want with your own dependencies, it's a marvel actually how modularly it all fits like lego's or puzzle pieces into ∑hatever you're building
For now I'll try to just re-use as much from medusa for the backend and see if I need more when I reach that.

Are you making an ecommerce app with medusa backend and t4-app frontend?

Yes, that's what I'm trying to do, looking into adding a supabase adapter to the medusa-plugin-auth repo to share auth between backend and frontend

from t4-app.

Boscop avatar Boscop commented on May 20, 2024

What about https://lucia-auth.com ?
They also have adapters for D1 etc.

from t4-app.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.