{"id":26179502,"url":"https://github.com/bezkoder/react-typescript-authentication-example","last_synced_at":"2025-04-14T22:34:19.872Z","repository":{"id":40762390,"uuid":"415206955","full_name":"bezkoder/react-typescript-authentication-example","owner":"bezkoder","description":"React Typescript JWT authentication and authorization example with Hooks, React router, Axios - Role based authentication example","archived":false,"fork":false,"pushed_at":"2022-09-30T03:26:39.000Z","size":598,"stargazers_count":81,"open_issues_count":0,"forks_count":31,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T10:47:35.647Z","etag":null,"topics":["authentication","authorization","axios","hooks","login","react","react-hooks","react-router","react-typescript","registration","token-authorization","token-based-authentication","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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}},"created_at":"2021-10-09T05:01:20.000Z","updated_at":"2025-02-18T10:07:16.000Z","dependencies_parsed_at":"2023-01-18T09:49:26.600Z","dependency_job_id":null,"html_url":"https://github.com/bezkoder/react-typescript-authentication-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bezkoder%2Freact-typescript-authentication-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bezkoder%2Freact-typescript-authentication-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bezkoder%2Freact-typescript-authentication-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bezkoder%2Freact-typescript-authentication-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bezkoder","download_url":"https://codeload.github.com/bezkoder/react-typescript-authentication-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248972695,"owners_count":21191844,"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","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","login","react","react-hooks","react-router","react-typescript","registration","token-authorization","token-based-authentication","typescript"],"created_at":"2025-03-11T21:50:09.319Z","updated_at":"2025-04-14T22:34:19.844Z","avatar_url":"https://github.com/bezkoder.png","language":"TypeScript","readme":"# React Typescript Authentication example with Hooks, Axios and Rest API\n\nBuild React Typescript Authentication and Authorization example using React Hooks, React Router, Axios and Bootstrap (without Redux):\n- JWT Authentication Flow for User Signup \u0026 User Login\n- Project Structure for React Typescript Authentication (without Redux) with React Router \u0026 Axios\n- Creating React Components with Form Validation using Formik and Yup\n- React Typescript Components for accessing protected Resources (Authorization)\n- Dynamic Navigation Bar in React Typescript App\n\nFor instruction, please visit:\n\u003e [React Typescript Authentication example with Hooks, Axios and Rest API](https://www.bezkoder.com/react-typescript-authentication-example/)\n\nSignup Page:\n\n![react-typescript-authentication-example-signup](react-typescript-authentication-example-signup.png)\n\nForm Validation:\n\n![react-typescript-authentication-example-form-validation](react-typescript-authentication-example-form-validation.png)\n\nLogin Page:\n\n![react-typescript-authentication-example-login](react-typescript-authentication-example-login.png)\n\nProfile Page:\n\n![react-typescript-authentication-example-profile-page](react-typescript-authentication-example-profile-page.png)\n\nThis React Client works well with following back-end Server:\n\u003e [Spring Boot: JWT Authentication \u0026 Authorization with MySQL](https://www.bezkoder.com/spring-boot-jwt-authentication/)\n\n\u003e [Spring Boot: JWT Authentication \u0026 Authorization with PostgreSQL](https://www.bezkoder.com/spring-boot-security-postgresql-jwt-authentication/)\n\n\u003e [Spring Boot: JWT Authentication \u0026 Authorization with MongoDB](https://www.bezkoder.com/spring-boot-jwt-auth-mongodb/)\n\n\u003e [Node Express: JWT Authentication \u0026 Authorization with MySQL](https://www.bezkoder.com/node-js-jwt-authentication-mysql/)\n\n\u003e [Node Express: JWT Authentication \u0026 Authorization with PostgreSQL](https://www.bezkoder.com/node-js-jwt-authentication-postgresql/)\n\n\u003e [Node Express: WT Authentication \u0026 Authorization with MongoDB](https://www.bezkoder.com/node-js-mongodb-auth-jwt/)\n\nRelated Posts:\n\u003e [React Hooks Typescript example Project with Axios and Web API](https://www.bezkoder.com/react-typescript-api-call/)\n\n\u003e [React (Javascript) CRUD example to consume Web API](https://www.bezkoder.com/react-crud-web-api/)\n\n\u003e [React Redux CRUD App example with Rest API](https://www.bezkoder.com/react-redux-crud-example/)\n\n\u003e [React (Hooks) CRUD example to consume Web API](https://www.bezkoder.com/react-hooks-crud-axios-api/)\n\n\u003e [React Table example: CRUD App with react-table v7](https://www.bezkoder.com/react-table-example-hooks-crud/)\n\nUsing Material UI instead of Bootstrap:\n\u003e [React Material UI examples with a CRUD Application](https://www.bezkoder.com/react-material-ui-examples-crud/)\n\nMore Practice:\n\u003e [React Pagination example](https://www.bezkoder.com/react-pagination-material-ui/)\n\n\u003e [React File Upload example](https://www.bezkoder.com/react-file-upload-axios/)\n\n\u003e [React JWT Authentication \u0026 Authorization example](https://www.bezkoder.com/react-jwt-auth/)\n\n\u003e [React + Redux: JWT Authentication \u0026 Authorization example](https://www.bezkoder.com/react-redux-jwt-auth/)\n\nFullstack with Node Express:\n\u003e [React + Node Express + MySQL](https://www.bezkoder.com/react-node-express-mysql/)\n\n\u003e [React + Node Express + PostgreSQL](https://www.bezkoder.com/react-node-express-postgresql/)\n\n\u003e [React + Node Express + MongoDB](https://www.bezkoder.com/react-node-express-mongodb-mern-stack/)\n\nFullstack with Spring Boot:\n\u003e [React + Spring Boot + MySQL](https://www.bezkoder.com/react-spring-boot-crud/)\n\n\u003e [React + Spring Boot + PostgreSQL](https://www.bezkoder.com/spring-boot-react-postgresql/)\n\n\u003e [React + Spring Boot + MongoDB](https://www.bezkoder.com/react-spring-boot-mongodb/)\n\nFullstack with Django:\n\n\u003e [React + Django Rest Framework](https://www.bezkoder.com/django-react-axios-rest-framework/)\n\nServerless:\n\u003e [React Firebase CRUD App with Realtime Database](https://www.bezkoder.com/react-firebase-crud/)\n\n\u003e [React Firestore CRUD App example | Firebase Cloud Firestore](https://www.bezkoder.com/react-firestore-crud/)\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 Express](https://www.bezkoder.com/integrate-react-express-same-server-port/)\n\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## 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","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbezkoder%2Freact-typescript-authentication-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbezkoder%2Freact-typescript-authentication-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbezkoder%2Freact-typescript-authentication-example/lists"}