{"id":14989425,"url":"https://github.com/andrejgajdos/auth-flow-spa-node-react","last_synced_at":"2025-09-23T20:19:16.734Z","repository":{"id":87168146,"uuid":"138309014","full_name":"AndrejGajdos/auth-flow-spa-node-react","owner":"AndrejGajdos","description":"🔐 User authentication in SPA, built with Node.js and React (Koa, Passport, Redux, Redux-Saga and React Router). Local authentication – users can log in using username, passport and authentication through Facebook.","archived":false,"fork":false,"pushed_at":"2018-06-24T14:05:25.000Z","size":3146,"stargazers_count":30,"open_issues_count":1,"forks_count":8,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T20:51:15.602Z","etag":null,"topics":["javascript","koa","koajs","node","nodejs","oauth","passport","passport-facebook","passport-local","passportjs","react","reactjs","reactrouter","redux","redux-saga"],"latest_commit_sha":null,"homepage":"http://andrejgajdos.com/authenticating-users-in-single-page-applications-using-node-passport-react-and-redux/","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/AndrejGajdos.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":"2018-06-22T13:58:46.000Z","updated_at":"2023-03-22T19:19:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"a702fb8e-5f97-4c66-b7b6-59b03a203114","html_url":"https://github.com/AndrejGajdos/auth-flow-spa-node-react","commit_stats":{"total_commits":8,"total_committers":2,"mean_commits":4.0,"dds":0.5,"last_synced_commit":"13028909806af612c65c13d169f84978cbfdef8a"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrejGajdos%2Fauth-flow-spa-node-react","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrejGajdos%2Fauth-flow-spa-node-react/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrejGajdos%2Fauth-flow-spa-node-react/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrejGajdos%2Fauth-flow-spa-node-react/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AndrejGajdos","download_url":"https://codeload.github.com/AndrejGajdos/auth-flow-spa-node-react/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248501420,"owners_count":21114674,"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":["javascript","koa","koajs","node","nodejs","oauth","passport","passport-facebook","passport-local","passportjs","react","reactjs","reactrouter","redux","redux-saga"],"created_at":"2024-09-24T14:18:21.031Z","updated_at":"2025-09-23T20:19:11.689Z","avatar_url":"https://github.com/AndrejGajdos.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# auth-flow-spa-node-react\nUser authentication in SPA, built with Node.js and React (Koa, Passport, Redux, Redux-Saga, React Router). Local authentication, where users can log in using a username and passport and authentication through Facebook.\n\n[Authenticating Users in SPA using Node, Passport, React and Redux](http://andrejgajdos.com/authenticating-users-in-single-page-applications-using-node-passport-react-and-redux/)\n\n## Preview\n\n\u003cimg src=\"https://raw.githubusercontent.com/AndrejGajdos/auth-flow-spa-node-react/master/media/auth-flow-in-spa-preview.gif\" width=\"500\"\u003e\n\n## Demo\n\n[auth-flow-in-spa.herokuapp.com](https://auth-flow-in-spa.herokuapp.com/about)\n\n## Configuration\n\nIf you want to use authentication with facebook, you need to create a new [facebook app](https://developers.facebook.com/docs/apps/register/), enable OAuth Login in `Settings -\u003e Facebook Login` and add `Valid OAuth Redirect URIs`. Then you need to copy `Client Token` and `App Id` into [.env](https://www.npmjs.com/package/dotenv) file in root of project folder.\n\n## Install and Run\n\n1) Install [Redis](https://redis.io/topics/quickstart)\n\n2) Install npm dependencies\n\n```bash\n# install dependencies\n$ npm i\n```\n\n```bash\n# run project\n\n# run redis\n$ redis-server\n\n# run webpack server to serve front-end code\n$ npm run webpack\n\n# run node.js server\n$ npm run api\n```\n\n## License\n\nMIT © [Andrej Gajdos](http://andrejgajdos.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrejgajdos%2Fauth-flow-spa-node-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrejgajdos%2Fauth-flow-spa-node-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrejgajdos%2Fauth-flow-spa-node-react/lists"}