{"repo":"CODE-AXION/nextjs-ssr-laravel-kit","free":true,"listed":false,"github":"https://github.com/CODE-AXION/nextjs-ssr-laravel-kit","clone":"git clone https://github.com/CODE-AXION/nextjs-ssr-laravel-kit.git","description":"A Next.js SSR starter kit designed to integrate with a Laravel Sanctum API Token Based Authentication. Features server-side authentication, stateless architecture, middlewares, refresh token, CSRF .","language":"PHP","stars":25,"topics":["laravel","laravel-framework","laravel-starter","laravel-starter-kit","nextjs","nextjs-starter","nextjs-starter-kit","nextjs-template"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"Laravel Breeze - Next.js (SSR-Server Side Authentication) Edition ▲ Introduction This is a SSR Next.js frontend for Laravel backend apis which includes authentication, authorization, csrf protection, and more. It uses similar structure of the laravel breeze. I tried to make it with next-auth library but I found its implementation overly complex, especially for managing refresh tokens, cookie expiration, and other configurations, So Instead I created this starter kit to keep things simple and straightforward. Core features: - Stateless Authentication - SSR Authentication - Middleware checks for protected routes, guest routes, verify email just like laravel. - Signed Double Submit CSRF Protection - HttpOnly Cookie secure tokens - Security guidelines (COOKIES, CSRF) following OWASP Guidelines - Refresh Token for preventing token expiration - Reusable authorization helpers Prerequisites - Laravel Sanctum (Token Based Authentication) - Next.js Pages Router With API Routes Handler Note: Do not install laravel breeze api package instead use this one mentioned in the repo because it uses token based authentication instead of sessions . Installation with Docker that's it, you can access the application at http://localhost:3000 Installation without Docker (Laravel Setup) First clone this Laravel Backend and install its dependencies. Important: - Next, ensure that you have to add the Laravel API URL and FRONTEND URL environment variables in the .env file or you might face some issues. -","default_branch":null,"files":null,"tree":[],"storefront":"/r/CODE-AXION","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/CODE-AXION/nextjs-ssr-laravel-kit/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}