0

I'm building an SEO-friendly e-commerce site. Since I usually work with Inertia.js, React, and Laravel as an SPA (which isn't ideal for SEO), I’ve decided to use Next.js with Server-Side Rendering (SSR) alongside a Laravel API.

I came across some articles suggesting the use of NextAuth.js with Laravel API for authentication in Next.js (SSR). However, I'm unsure about its advantages compared to directly handling authentication with the Laravel API.

My Questions: 1- Do I need to use NextAuth.js for authentication in this setup, or is it better to authenticate directly with Laravel API?

2- What are the benefits of using NextAuth.js with Laravel instead of handling authentication manually in Next.js?

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.