Auth js authentication in Next JS for laravel backend

Hey everyone, I'm exploring using Auth JS to handle authentication in my Next.js app and then checking authentication status on my Laravel backend, which is on a separate server. Any advice on setting this up? Also, I'd like to use server components in Next.js while ensuring users can authenticate to access protected routes in my Laravel API. Any tips for achieving this?
1 Reply
Salumsu
Salumsu4mo ago
This might be it https://authjs.dev/guides/configuring-oauth-providers Then I can use laravel sanctum or passport.... Im not really sure.
Auth.js | Configuring Oauth Providers
Authentication for the Web
Want results from more Discord servers?
Add your server