{"id":23651383,"url":"https://github.com/damiancipolat/authflow-nodejs-cognito","last_synced_at":"2026-04-09T10:03:09.663Z","repository":{"id":139318582,"uuid":"171367367","full_name":"damiancipolat/AuthFlow-Nodejs-Cognito","owner":"damiancipolat","description":"Integration between cognito and Node.js to create an authentication flow for a web site.","archived":false,"fork":false,"pushed_at":"2023-02-16T13:30:14.000Z","size":245,"stargazers_count":2,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T10:21:14.982Z","etag":null,"topics":["auth","aws","aws-sdk","cognito","cognito-user-pool","es6","nodejs"],"latest_commit_sha":null,"homepage":null,"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/damiancipolat.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":"2019-02-18T22:46:30.000Z","updated_at":"2024-01-31T06:25:19.000Z","dependencies_parsed_at":"2023-03-12T15:15:43.737Z","dependency_job_id":null,"html_url":"https://github.com/damiancipolat/AuthFlow-Nodejs-Cognito","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/damiancipolat%2FAuthFlow-Nodejs-Cognito","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damiancipolat%2FAuthFlow-Nodejs-Cognito/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damiancipolat%2FAuthFlow-Nodejs-Cognito/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damiancipolat%2FAuthFlow-Nodejs-Cognito/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/damiancipolat","download_url":"https://codeload.github.com/damiancipolat/AuthFlow-Nodejs-Cognito/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248208690,"owners_count":21065205,"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":["auth","aws","aws-sdk","cognito","cognito-user-pool","es6","nodejs"],"created_at":"2024-12-28T16:37:21.577Z","updated_at":"2026-04-09T10:03:09.605Z","avatar_url":"https://github.com/damiancipolat.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Auth flow using cognito\n\n- Amazon Cognito lets you add user sign-up, sign-in, and access control to your web and mobile apps quickly and easily.\n- How to use?: we can use cognito throw the aws-sdk.\n- I used this link: https://medium.com/@prasadjay/amazon-cognito-user-pools-in-nodejs-as-fast-as-possible-22d586c5c8ec as reference.\n- I recommend this fake email generator website: https://getnada.com/msg\n\n\n## Server \u0026 serverless\nWe can use cognito in a full serverless architecture (using lambda functions) or using a server in this example, we will work with an api rest server created with NODEJS.\n\n### With classic server:\n\n![N|Solid](https://github.com/damiancipolat/AuthFlow-Nodejs-Cognito/blob/master/doc/using-server.png?raw=true)\n\n### Serverless:\n\n![N|Solid](https://github.com/damiancipolat/AuthFlow-Nodejs-Cognito/blob/master/doc/using-serverless.png?raw=true)\n\n\n## Using Node.js:\nIn this repository you can download a nodejs server that allows as to communicate with aws cognito, allowing as to implement a authentication workflow.\n\n**To install:**\n```sh\n$ npm install\n```\n\n**To run:**\n```sh\n$ npm start\n```\n\n**To test:**\nLoad in Post man the JSON file \"Auth flow.postman_collection.json\" to test the server.\n\nServer functionalities:\n\n- Login\n- Signup user\n- Verify tokens\n- Renew token\n- Change password\n\nThe signup workflow is very interesting, I attach a diagram of how function:\n\n![N|Solid](https://github.com/damiancipolat/AuthFlow-Nodejs-Cognito/blob/master/doc/signup-flow.png?raw=true)\n\n1) The user make a signup request to the server.\n2) Cognito receives the user data, and sent to them an activation link, depends the setup that we choose, you can handle by differents ways.\n3) The use click the action link in the email.\n4) The browser go to the activarion url and cognito, set\nas verified the user.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdamiancipolat%2Fauthflow-nodejs-cognito","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdamiancipolat%2Fauthflow-nodejs-cognito","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdamiancipolat%2Fauthflow-nodejs-cognito/lists"}