mickasmt / next-saas-stripe-starter

Open-source SaaS Starter with User Roles & Admin Panel. Built using Next.js 14, Prisma, Neon, Auth.js v5, Resend, React Email, Shadcn/ui, Stripe, Server Actions.
https://next-saas-stripe-starter.vercel.app
MIT License
1.95k stars 354 forks source link

How to authenticate user via magic link post stripe checkout? #62

Open iamhenry opened 3 weeks ago

iamhenry commented 3 weeks ago

I have been struggling to get authentication to work properly and I'm seeking help

Flow: user selects a plan -> checkouts via stripe -> send magic link for authentication to protected pages (dashboard) -> signed in to dashboard page

I can see the generated token in the database image

but when i click the generated link in my email it doesnt log me in. here are the logs: image

any help would be truly appreciated