{"id":21812922,"url":"https://github.com/relativelie/auth","last_synced_at":"2025-03-21T09:21:37.009Z","repository":{"id":218440136,"uuid":"745674788","full_name":"Relativelie/auth","owner":"Relativelie","description":"react - refresh/access tokens - Router Dom v6. Example of Authentication with an access and refresh token.","archived":false,"fork":false,"pushed_at":"2024-01-22T12:14:59.000Z","size":215,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-26T06:07:55.755Z","etag":null,"topics":["axios","react","reacthookform","reactrouter6","toastify","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/Relativelie.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}},"created_at":"2024-01-19T21:07:29.000Z","updated_at":"2024-02-11T10:24:14.000Z","dependencies_parsed_at":"2024-01-22T00:24:34.721Z","dependency_job_id":"e30247a4-a789-4108-af4d-283c36525c82","html_url":"https://github.com/Relativelie/auth","commit_stats":null,"previous_names":["relativelie/auth"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Relativelie%2Fauth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Relativelie%2Fauth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Relativelie%2Fauth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Relativelie%2Fauth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Relativelie","download_url":"https://codeload.github.com/Relativelie/auth/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244767921,"owners_count":20507139,"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":["axios","react","reacthookform","reactrouter6","toastify","typescript"],"created_at":"2024-11-27T14:25:53.123Z","updated_at":"2025-03-21T09:21:36.980Z","avatar_url":"https://github.com/Relativelie.png","language":"TypeScript","readme":"# Authentication Example\n\n## Project Objective\n\n- The purpose of the project is to demonstrate skills in developing authorization systems.\n- It's a simple project for now, but I'll make it more complicated over time.\n\n## Technologies Used\n\nreact - refresh/access tokens - Router Dom v6 - react-hook-form - react-toastify\n\n## Features\n\n* Authorization and registration\n* Sending requests with an access token\n* Refreshing token if an access token is not valid\n* Email and pass validation\n\n## Backend mocks\n\nBackend mocks are located [here](https://github.com/Relativelie/auth_back). These are just dummy mocks\n\n## Short video review\n\n* Get request with the auth bearer token\n\nhttps://github.com/Relativelie/auth/assets/59819426/1c7b29cb-fd69-4cf9-938d-3fd84b3cdbf0\n\n\n* Refreshing access token if it has responded with 401 code\n\nhttps://github.com/Relativelie/auth/assets/59819426/17244c0b-25c5-42fb-b43c-6f5abce780fc\n\n\n* Auth/registration\n\nhttps://github.com/Relativelie/auth/assets/59819426/5628bc39-32f6-4dac-b06a-6e1349d3ea58\n\n\n\n* Input validation\n\nhttps://github.com/Relativelie/auth/assets/59819426/2a9c1b0c-ff4e-4e87-b303-ae84f36c7bb8\n\n* Show an error message when an error response is received\n\nhttps://github.com/Relativelie/auth/assets/59819426/db58c6a6-5cfa-42f5-bb40-004d49b521a2\n\n## Installation\n### Frontend auth:\n1. Clone the repository\nhttps://github.com/Relativelie/auth.git\n\n2. Navigate to the project directory\n3. Install packages with 'npm install'\n4. Start the development server 'npm start' \n\n### Mock server \n1. Clone the repository\nhttps://github.com/Relativelie/auth_back.git\n\n2. Navigate to the project directory\n3. Install packages with 'npm install'\n4. Start the development server ''node auth_mock.js'\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frelativelie%2Fauth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frelativelie%2Fauth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frelativelie%2Fauth/lists"}