vercel / nextjs-subscription-payments

Clone, deploy, and fully customize a SaaS subscription application with Next.js.
https://subscription-payments.vercel.app/
MIT License
6.4k stars 1.3k forks source link

Auth not working after deployment to Vercel #246

Closed Shivansh-yadav13 closed 1 year ago

Shivansh-yadav13 commented 1 year ago

I have followed the Readme file and deployed my app but there is 1 issue, on my localhost:3000 authentication works perfectly but after deploying it to vercel it does not work and the console shows this

https://mzwpeqplxjiupysnwteo.supabase.co/auth/v1/token?grant_type=pkce 401

after making auth request

Failed to load resource: the server responded with a status of 401 ()

I have a failed request in the logs could that be the reason

promethus

Shivansh-yadav13 commented 1 year ago

There was some issue with my ENV variable 😑

selalipop commented 11 months ago

What issue?