Comments (12)
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.
@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.
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.
NextAuth.js is web only, unfortunately.
from t4-app.
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.
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.
@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.
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 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.
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.
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.
What about https://lucia-auth.com ?
They also have adapters for D1 etc.
from t4-app.
Related Issues (20)
- CORS error because of autogenerated .dev.vars file HOT 2
- Confusion with T3 HOT 10
- Tamagui web error: `Looking for theme: displayName` HOT 2
- great work HOT 2
- NextJs env variables missing in .env.example for localhost (vs PUBLIC_ variables) HOT 2
- Authentification issue on Safari HOT 3
- Images not working with expo due to solito-image HOT 4
- Expo config env variables HOT 2
- Provide watermelonDB example HOT 2
- bun web fails HOT 4
- Lucia branch: ERROR: Failed to produce a Cloudflare Pages build from the project. The route `/oauth/[provider]` was not configured to run with the Edge Runtime HOT 15
- Lucia branch: Check `sendResult` and forward `PUBLIC_SUPPORT_EMAIL` and `RESEND_API_KEY` vars to CF deployment HOT 1
- Lucia branch: After pw reset, redirect to /login is 404, it should be /sign-in HOT 1
- Lucia branch: Suggestion: Send email after successful sign up HOT 4
- Lucia branch: Suggestion: When pw reset code is invalid, show this error as soon as the site loads, don't wait until user tries to enter a new pw HOT 1
- tRPC not working ion Next.js app HOT 1
- Expo is starting to support MacOS, is Tauri still going to be need (for MacOS)? HOT 2
- error in CONFIGURE_EXPO_UPDATES phase HOT 2
- supabaseUrl is required HOT 2
- Tamagui: unable to launch web app HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from t4-app.