Comments (1)
There's a couple of ways of doing this, e.g.
- You can use RLS, example here: https://github.com/vercel/nextjs-subscription-payments/blob/refactor/simple-paywall/schema.sql#L150-L159
- You can use an API route or SSR to verify their JWT, check their subscription status and then return info based on that. Here some examples of verifying the users JWT server-side: https://github.com/supabase/supabase/tree/master/examples/nextjs-with-supabase-auth#example-supabase-authentication-client--and-server-side-api-routes-and-ssr-with-auth-cookie
from nextjs-subscription-payments.
Related Issues (20)
- Generate product feature list from Stripe product features
- Empty NEXT_PUBLIC_SITE_URL env var breaks checkout in local testing HOT 1
- Implement Reset Password HOT 1
- Cant generate Static pages because navbar uses SSR for user HOT 3
- Stripe link redirects to the wrong URL when returning from the "customer Portal" HOT 1
- Feature Request: Light Mode , Dark Mode
- Is using SUPABASE_SERVICE_ROLE_KEY in the app safe? HOT 1
- Issue with trial period setting HOT 1
- Webhook Error: No signatures found matching the expected signature for payload. HOT 3
- Is there a fork of this repo that uses popular ORMs like prisma or drizzle ? HOT 2
- Supabase + Vercel Deploy Button loading forever HOT 3
- No overload matches this call. ./app/account/page.tsx:47 HOT 11
- Getting ECONNREFUSED when starting `npm run dev` HOT 1
- Breaking Change by Stripe: Example needs overhaul HOT 1
- Defining the "Main Deployment URL" HOT 2
- Type error `priceData` HOT 3
- Stuck after setting up Supabase when using "Deploy Now" HOT 4
- Feature Request: Documentation
- Cannot setup supabase local instance HOT 2
- Can't import shadcn button component HOT 2
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 nextjs-subscription-payments.