Supabase #486
Replies: 4 comments 2 replies
-
|
Hello everyone, I wanted to propose an idea for integrating Supabase authentication into Vike, structured in two parts:
I’ve already started an implementation that works, but given Supabase’s growing user base — especially with the recent introduction of Supabase Cursor — it would be great to establish a clean, secure, and maintainable integration. Standardizing best practices for Supabase authentication in Vike would not only simplify onboarding but also help ensure consistent security patterns across projects. Would love to hear your thoughts! |
Beta Was this translation helpful? Give feedback.
-
Help: Integrating Supabase Auth with Vike (via Bati + Hono + Universal Middleware)Hi everyone, I'm currently building an app using Bati which scaffolds Vike-based projects. The generated setup includes I've noticed this in the boilerplate code:
I want to integrate Supabase authentication using @supabase/ssr. I'm currently doing this through a custom Hono middleware that injects supabase and user into the universal context using return { ...context, user, supabase }. Questions
Thanks in advance for your insights and suggestions! |
Beta Was this translation helpful? Give feedback.
-
You will be fine. Either Hono middlewares or Universal ones will still be usable in the future.
Do not worry, going to and from
I really like Supabase stack, so I would like to have some kind of top tier support for it, but I really do not have the bandwidth to do this on my own. For this kind of integrations, we must rely on contributors like you for now. |
Beta Was this translation helpful? Give feedback.
-
|
feat: Add Vike + Hono + Supabase SSR example with middleware and client |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
SUPABASE
👉AUTH AND RPC
Hello everyone,
I wanted to propose an idea for integrating Supabase authentication into Vike, structured in two parts:
API routes with Hono — for handling user authentication, like fetching the current user and signing out.
Sign-in using Telefunc (RPC) — to allow secure and flexible client-server communication.
I’ve already started an implementation that works, but given Supabase’s growing user base — especially with the recent introduction of Cursor ecosystem— it would be great to establish a clean, secure, and maintainable integration.
Standardizing best practices for Supabase authentication in Vike would not only simplify onboarding but also help ensure consistent security patterns across projects.
🙂
Would love to hear your thoughts!
Homepage
https://supabase.com/docs/guides/auth/server-side/creating-a-client?queryGroups=framework&framework=hono&queryGroups=package-manager&package-manager=pnpm&queryGroups=environment&environment=server-client
Beta Was this translation helpful? Give feedback.
All reactions