{"id":23403430,"url":"https://github.com/selmasaltik/react-authentication","last_synced_at":"2026-04-20T03:01:54.059Z","repository":{"id":260184132,"uuid":"880534326","full_name":"selmasaltik/react-authentication","owner":"selmasaltik","description":"Adding Authentication To React Apps /// What I learned from \"React - The Complete Guide 2024 (incl. Next.js, Redux) - Academind by Maximilian Schwarzmüller\"","archived":false,"fork":false,"pushed_at":"2024-10-30T14:59:22.000Z","size":210,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-08T22:41:49.979Z","etag":null,"topics":["authentication","react","react-router-dom","token-authetication","user-authentication-react"],"latest_commit_sha":null,"homepage":"https://react-authentication-virid.vercel.app","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/selmasaltik.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}},"created_at":"2024-10-29T22:32:17.000Z","updated_at":"2024-10-30T15:41:57.000Z","dependencies_parsed_at":"2025-02-14T17:54:28.681Z","dependency_job_id":null,"html_url":"https://github.com/selmasaltik/react-authentication","commit_stats":null,"previous_names":["selmasaltik/react-authentication"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/selmasaltik/react-authentication","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selmasaltik%2Freact-authentication","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selmasaltik%2Freact-authentication/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selmasaltik%2Freact-authentication/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selmasaltik%2Freact-authentication/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/selmasaltik","download_url":"https://codeload.github.com/selmasaltik/react-authentication/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selmasaltik%2Freact-authentication/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32031070,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"online","status_checked_at":"2026-04-20T02:00:06.527Z","response_time":94,"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","react","react-router-dom","token-authetication","user-authentication-react"],"created_at":"2024-12-22T12:47:51.560Z","updated_at":"2026-04-20T03:01:54.041Z","avatar_url":"https://github.com/selmasaltik.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Authentication\n***User Signup \u0026 Login***\n\n- **How Authentication Works** In React Apps\n- **Implementing** User Authentication\n- Adding Authentication **Persistence \u0026 Auto-Logout**\n\n**Authentication is needed if content should be *protected***\n\ni.e., if content should not be accessible by everyone\n\n**[Getting Permission](https://www.canva.com/design/DAGU_tUY7wI/gfLPgEbIY5zdUBx3561v2g/view?utm_content=DAGU_tUY7wI\u0026utm_campaign=designshare\u0026utm_medium=link\u0026utm_source=editor)**\n\n**How Does Authentication Work?**\n\n***Client and server can’t just exchange a “Yes”***\n\nAny client could simply send a request to our backend that “tells” the backend that we previously were granted access\n\n***Server-side Sessions***\n\n- Store unique identifier on server, send same identifier to client\n- Client sends identifier along with requests to protected resources\n- Server can then check if the identifier is valid (= previously issued by server to client)\n\n***Authentication Tokens***\n\n- Create (but not store) “permission” token on server \u0026 send it to the client\n- Client attaches token to future requests for protected resources\n- Server can then verify the attached token\n\n***[Working with Decoupled Backends](https://www.canva.com/design/DAGU_x8yXKk/H_KUBRNvR9SrIjEWpU2WhA/view?utm_content=DAGU_x8yXKk\u0026utm_campaign=designshare\u0026utm_medium=link\u0026utm_source=editor)***\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fselmasaltik%2Freact-authentication","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fselmasaltik%2Freact-authentication","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fselmasaltik%2Freact-authentication/lists"}