{"repo":"yum72/React-Redux-Auth-Boilerplate","free":true,"listed":false,"github":"https://github.com/yum72/React-Redux-Auth-Boilerplate","clone":"git clone https://github.com/yum72/React-Redux-Auth-Boilerplate.git","description":"React authentication starter: sign in, sign up, protected routes and persisted sessions. Vite, React 19, Redux Toolkit, Tailwind and shadcn/ui.","language":"JavaScript","stars":15,"topics":["reactjs","react-redux","react-router-dom","authentication","boilerplate","redux-toolkit","shadcn-ui","tailwindcss","vite"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"React Redux Auth Boilerplate A starting point for a React app that needs sign in, sign up, routes only logged-in users can reach, and a session that survives a refresh. Status: maintained · React 19 The pieces here are the ones that are tedious to wire up and easy to get subtly wrong: where the token lives, what happens on reload before it is read back, and where a user lands after being bounced to the login page. Stack --- --- Build Vite 6 UI React 19, Tailwind 4, shadcn/ui State Redux Toolkit 2 Persistence localStorage , via a store subscription Routing React Router 7 HTTP native fetch Quick start Then open http://localhost:3000. What you get Sign in and sign up , both wired to createAsyncThunk , with loading state on the submit button and server errors surfaced in the form. Registering signs you straight in rather than sending you back to a login form to retype credentials you just chose. Protected routes through a ProtectedRoute wrapper. It records the page the user was trying to reach in router state, so after signing in they land there instead of on a generic home page. Persisted sessions. Only the auth slice is persisted. Persisting the whole store is the usual mistake: it survives reloads you wanted and ones you did not, and it quietly makes every reducer's initial state a lie. Reload while signed in and you stay signed in; the counter on the protected page resets, which is the difference made visible. No flash of logged-out UI. The saved session is read synchronously","default_branch":null,"files":null,"tree":[],"storefront":"/r/yum72","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/yum72/React-Redux-Auth-Boilerplate/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."}