{"id":26179438,"url":"https://github.com/bezkoder/react-redux-login-example","last_synced_at":"2025-07-30T07:43:49.839Z","repository":{"id":37281402,"uuid":"408078191","full_name":"bezkoder/react-redux-login-example","owner":"bezkoder","description":"React Redux Login example (Register, Logout) using Redux Toolkit, React Router, Axios, Bootstrap, Hooks","archived":false,"fork":false,"pushed_at":"2023-06-10T05:50:39.000Z","size":425,"stargazers_count":99,"open_issues_count":0,"forks_count":55,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-04T23:40:53.382Z","etag":null,"topics":["authentication","authorization","axios","hooks","jwt","jwt-authentication","login","react","react-hooks","react-router","reactjs","redux","redux-toolkit","register","registration","token-based-authentication"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bezkoder.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-09-19T08:56:39.000Z","updated_at":"2025-04-28T01:25:38.000Z","dependencies_parsed_at":"2025-04-14T22:32:20.558Z","dependency_job_id":"eff91c4d-b1a9-4d5f-a227-8ad953786613","html_url":"https://github.com/bezkoder/react-redux-login-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bezkoder/react-redux-login-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bezkoder%2Freact-redux-login-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bezkoder%2Freact-redux-login-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bezkoder%2Freact-redux-login-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bezkoder%2Freact-redux-login-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bezkoder","download_url":"https://codeload.github.com/bezkoder/react-redux-login-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bezkoder%2Freact-redux-login-example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267833418,"owners_count":24151608,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["authentication","authorization","axios","hooks","jwt","jwt-authentication","login","react","react-hooks","react-router","reactjs","redux","redux-toolkit","register","registration","token-based-authentication"],"created_at":"2025-03-11T21:49:55.411Z","updated_at":"2025-07-30T07:43:49.802Z","avatar_url":"https://github.com/bezkoder.png","language":"JavaScript","readme":"## React Redux Login example using Redux-toolkit \u0026 Hooks\n\n- JWT Authentication Flow for User Login, Register, Logout\n- Project Structure for React Redux JWT Authentication, Router, Axios\n- Working with Redux Actions, Reducers, Store using redux-toolkit\n- Creating React Function Components with Hooks \u0026 Form Validation\n- React Function Components for accessing protected Resources (Authorization)\n- Dynamic Navigation Bar in React App\n\nFor more detail, please visit:\n\u003e [React Redux Login \u0026 Registration example with Redux-toolkit \u0026 Hooks](https://www.bezkoder.com/react-redux-login-example-toolkit-hooks/)\n\nSignup Page:\n\n![react-redux-login-register-example-redux-toolkit-signup](react-redux-login-register-example-redux-toolkit-signup.png)\n\nLogin Page:\n\n![react-redux-login-register-example-redux-toolkit-login](react-redux-login-register-example-redux-toolkit-login.png)\n\nFor Authorized account login (Moderator for example), the navigation bar will change:\n\n![react-redux-login-register-example-redux-toolkit-authorization](react-redux-login-register-example-redux-toolkit-authorization.png)\n\nRelated Posts (without redux-toolkit):\n\u003e [React Redux Login, Logout, Registration example with Hooks](https://www.bezkoder.com/react-hooks-redux-login-registration-example/)\n\n\u003e [React Hooks: JWT Authentication \u0026 Authorization (without Redux) example](https://www.bezkoder.com/react-hooks-jwt-auth/)\n\n\u003e [React Redux Login, Logout, Registration example (using React Components)](https://www.bezkoder.com/react-redux-jwt-auth/)\n\nFullstack (JWT Authentication \u0026 Authorization example):\n\u003e [React + Spring Boot](https://www.bezkoder.com/spring-boot-react-jwt-auth/)\n\n\u003e [React + Node.js Express](https://www.bezkoder.com/react-express-authentication-jwt/)\n\nThis project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).\n\n### Set port\n.env\n```\nPORT=8081\n```\n\n### Note:\nOpen `src/services/auth-header.js` and modify `return` statement for appropriate back-end (found in the tutorial).\n\n```js\nexport default function authHeader() {\n  const user = JSON.parse(localStorage.getItem('user'));\n\n  if (user \u0026\u0026 user.accessToken) {\n    // return { Authorization: 'Bearer ' + user.accessToken }; // for Spring Boot back-end\n    return { 'x-access-token': user.accessToken };             // for Node.js Express back-end\n  } else {\n    return {};\n  }\n}\n```\n\n### Project setup\n\nIn the project directory, you can run:\n\n```\nnpm install\n# or\nyarn install\n```\n\nor\n\n### Compiles and hot-reloads for development\n\n```\nnpm start\n# or\nyarn start\n```\n\nOpen [http://localhost:8081](http://localhost:8081) to view it in the browser.\n\nThe page will reload if you make edits.\n\n### Related Posts\n\u003e [In-depth Introduction to JWT-JSON Web Token](https://www.bezkoder.com/jwt-json-web-token/)\n\n\u003e [React CRUD example using Hooks](https://www.bezkoder.com/react-hooks-crud-axios-api/)\n\n\u003e [React Pagination using Hooks example](https://www.bezkoder.com/react-pagination-hooks/)\n\n\u003e [React Hooks File Upload example](https://www.bezkoder.com/react-hooks-file-upload/)\n\n\u003e [React Form Validation with Hooks example](https://bezkoder.com/react-form-validation-hooks/)\n\nFullstack with Node.js Express:\n\u003e [React.js + Node.js Express + MySQL](https://www.bezkoder.com/react-node-express-mysql/)\n\n\u003e [React.js + Node.js Express + PostgreSQL](https://www.bezkoder.com/react-node-express-postgresql/)\n\n\u003e [React.js + Node.js Express + MongoDB](https://www.bezkoder.com/react-node-express-mongodb-mern-stack/)\n\nFullstack with Spring Boot:\n\u003e [React.js + Spring Boot + MySQL](https://www.bezkoder.com/react-spring-boot-crud/)\n\n\u003e [React.js + Spring Boot + PostgreSQL](https://www.bezkoder.com/spring-boot-react-postgresql/)\n\n\u003e [React.js + Spring Boot + MongoDB](https://www.bezkoder.com/react-spring-boot-mongodb/)\n\nFullstack with Django:\n\u003e [React.js Hooks + Django Rest Framework](https://www.bezkoder.com/django-react-hooks/)\n\nServerless:\n\u003e [React Hooks Firebase Realtime Database: CRUD App ](https://www.bezkoder.com/react-firebase-hooks-crud/)\n\n\u003e [React Hooks Firestore example: CRUD App](https://www.bezkoder.com/react-hooks-firestore/)\n\nIntegration (run back-end \u0026 front-end on same server/port)\n\u003e [Integrate React with Spring Boot](https://www.bezkoder.com/integrate-reactjs-spring-boot/)\n\n\u003e [Integrate React with Node.js Express](https://www.bezkoder.com/integrate-react-express-same-server-port/)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbezkoder%2Freact-redux-login-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbezkoder%2Freact-redux-login-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbezkoder%2Freact-redux-login-example/lists"}