{"id":15898622,"url":"https://github.com/asomoza/react-login","last_synced_at":"2026-05-04T23:32:25.168Z","repository":{"id":86892635,"uuid":"307008262","full_name":"asomoza/react-login","owner":"asomoza","description":"A react authentication flow demo","archived":false,"fork":false,"pushed_at":"2020-10-31T05:08:24.000Z","size":237,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-30T20:06:18.177Z","etag":null,"topics":["login-flow","react","react-router"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/asomoza.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2020-10-25T02:17:39.000Z","updated_at":"2020-10-31T05:08:26.000Z","dependencies_parsed_at":"2023-04-16T22:14:04.613Z","dependency_job_id":null,"html_url":"https://github.com/asomoza/react-login","commit_stats":{"total_commits":7,"total_committers":1,"mean_commits":7.0,"dds":0.0,"last_synced_commit":"7f53da1dc243e5e58dfc94ddc3bbcf6042e204b6"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/asomoza/react-login","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asomoza%2Freact-login","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asomoza%2Freact-login/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asomoza%2Freact-login/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asomoza%2Freact-login/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/asomoza","download_url":"https://codeload.github.com/asomoza/react-login/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asomoza%2Freact-login/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32628811,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"ssl_error","status_checked_at":"2026-05-04T10:08:02.005Z","response_time":58,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["login-flow","react","react-router"],"created_at":"2024-10-06T10:06:51.269Z","updated_at":"2026-05-04T23:32:25.147Z","avatar_url":"https://github.com/asomoza.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-login\n### A react authentication flow demo and learning tutorial\n\nThis is my attempt to learn how to do a simple login application in react. \nThis is also part of a blog post I'm writing so the commits and tags\nare done with that in mind.\n\nMost of the react tutorials about this assume you know how React works inside\nand out but I think the most common application to start learning a framework\nwould be a real one so the best way to start to learn React is with a login \nform that lets you access a secured application with some sort of \nauthentication.\n\nThis is very basic code so keep in mind that's not ready for any production\nuse.\n\n### Installation\n\nFor the router to work on manual page refreshes is necessary to\nconfigure the web server to redirect all 404 error pages to the\n`index.html` file.\n\nIf using `Apache` there's an `.htaccess` provided in the public directory.\n\nIf using `Nginx` modify the site `.conf`:\n\n```\nlocation / {\n  if (!-e $request_filename){\n    rewrite ^(.*)$ /index.html break;\n  }\n}\n```\n\nIf using `Express`:\n\n``` javascript\napp.get('/*', function(req, res) {\n  res.sendFile(path.join(__dirname, 'path/to/your/index.html'), function(err) {\n    if (err) {\n      res.status(500).send(err)\n    }\n  })\n})\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasomoza%2Freact-login","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fasomoza%2Freact-login","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasomoza%2Freact-login/lists"}