{"id":20289935,"url":"https://github.com/igorbrizack/mfa-authentication-backend","last_synced_at":"2026-04-13T19:31:13.521Z","repository":{"id":262351746,"uuid":"879479952","full_name":"IgorBrizack/mfa-authentication-backend","owner":"IgorBrizack","description":"Backend with a setup of MFA Authentication","archived":false,"fork":false,"pushed_at":"2024-11-20T17:35:53.000Z","size":597,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-04T04:42:00.201Z","etag":null,"topics":["docker","express","mfa-authenticator","node","postgres","twillio","typeorm","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/IgorBrizack.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-10-28T01:40:17.000Z","updated_at":"2024-11-20T17:35:57.000Z","dependencies_parsed_at":"2025-01-14T08:44:12.822Z","dependency_job_id":null,"html_url":"https://github.com/IgorBrizack/mfa-authentication-backend","commit_stats":null,"previous_names":["igorbrizack/mfa-authentication-backend"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/IgorBrizack/mfa-authentication-backend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IgorBrizack%2Fmfa-authentication-backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IgorBrizack%2Fmfa-authentication-backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IgorBrizack%2Fmfa-authentication-backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IgorBrizack%2Fmfa-authentication-backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IgorBrizack","download_url":"https://codeload.github.com/IgorBrizack/mfa-authentication-backend/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IgorBrizack%2Fmfa-authentication-backend/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273758357,"owners_count":25162773,"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","status":"online","status_checked_at":"2025-09-05T02:00:09.113Z","response_time":402,"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":["docker","express","mfa-authenticator","node","postgres","twillio","typeorm","typescript"],"created_at":"2024-11-14T15:05:34.424Z","updated_at":"2026-04-13T19:31:13.472Z","avatar_url":"https://github.com/IgorBrizack.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🔐 Multi Factor Authentication - Backend\n\n**`En-US`**\n\n## About this project\n\nThis project will present how to create an API with JWT authentication / 2 factor authentication. To build this application I use **NodeJS + Express** to create the server, **TypeScript**, **POO and Clean Architecture**. Core lib selected to this project was **Twillio Authy** to provide our 2 factor authentication service and QRcode to generate the TOTP code with any code generator App. To have the full experience you will need to run the [Frontend](https://github.com/IgorBrizack/mfa-authentication-front) and start the server to interact.\n\n## Steps\n\n1.  **Clone the repository**\n\n```\ngit clone git@github.com:IgorBrizack/mfa-authentication-backend.git\n```\n\n2. **Create account at Twillio Website and setup your service configurations**\n\n   - Visit the [Twilio Website](https://www.twilio.com/login)\n\n   - Grab your Account SID and Auth Token\n\n   - Create your service under **Develop** \u003e\u003e\u003e **Verify** and give it a name\n\n   - After creating the service, go to the service settings and **grab your Service SID**\n\n   - If you want, you can change the name that will appear in the authentication app under the TOTP option.\n\n   \u003cp align=\"center\"\u003e\n    \u003cimg src=\"./src/assets/twillio_acc_sid_auth_token.png\" alt=\"acc_sid_auth_token\" width=\"500\" height=\"300\"\u003e\n   \u003c/p\u003e\n\n   \u003cbr/\u003e\n\n   \u003cp align=\"center\"\u003e\n    \u003cimg src=\"./src/assets/creating_service.png\" alt=\"creating_service\" width=\"500\" height=\"300\"\u003e\n   \u003c/p\u003e\n\n   \u003cbr/\u003e\n\n   \u003cp align=\"center\"\u003e\n    \u003cimg src=\"./src/assets/service_sid.png\" alt=\"service_sid\" width=\"500\" height=\"300\"\u003e\n   \u003c/p\u003e\n\n3. **Run with Docker**\n\n```\ndocker-compose up -d --build\n```\n\n3. **Run with Node**\n\n```\nnpm install\nnpm run dev\n```\n\n4. **Setup your envs** check the .env.example file\n\n5. **The server will start at Port 3100 of your host**\n\n6. **Start the [Frontend](https://github.com/IgorBrizack/mfa-authentication-front)**\n\n---\n\n**`Pt-BR`**\n\nEste projeto apresentará como criar uma API com autenticação JWT e autenticação de dois fatores. Para construir esta aplicação, utilizei NodeJS + Express para criar o servidor, TypeScript, POO e Clean Architecture. A biblioteca principal escolhida para este projeto foi o Twilio Authy, que fornece o serviço de autenticação de dois fatores, e o QRCode para gerar o código TOTP com qualquer aplicativo gerador de código. Para uma experiência completa, será necessário rodar o [Frontend](https://github.com/IgorBrizack/mfa-authentication-front) e iniciar o servidor para interagir.\n\n## Passos\n\n1.  **Clone o reporsitório**\n\n```\ngit clone git@github.com:IgorBrizack/mfa-authentication-backend.git\n```\n\n2. **Crie uma conta no site do Twillio e implemente a configuração do seu serviço**\n\n   - Acesse [Twilio Website](https://www.twilio.com/login)\n\n   - Obtenha o Account SID e Auth Token\n\n   - Crie um serviço em **Develop** \u003e\u003e\u003e **Verify** e dê a ele um nome.\n\n   - Após criar o serviço, vá até as configurações do serviço **pegue o Service SID**\n\n   - Se você quiser, na configuração do TOTP você pode selecionar o nome que irá aparecer no eu aplicativo de autenticação.\n\n   \u003cp align=\"center\"\u003e\n    \u003cimg src=\"./src/assets/twillio_acc_sid_auth_token.png\" alt=\"acc_sid_auth_token\" width=\"500\" height=\"300\"\u003e\n   \u003c/p\u003e\n\n   \u003cbr/\u003e\n\n   \u003cp align=\"center\"\u003e\n    \u003cimg src=\"./src/assets/creating_service.png\" alt=\"creating_service\" width=\"500\" height=\"300\"\u003e\n   \u003c/p\u003e\n\n   \u003cbr/\u003e\n\n   \u003cp align=\"center\"\u003e\n    \u003cimg src=\"./src/assets/service_sid.png\" alt=\"service_sid\" width=\"500\" height=\"300\"\u003e\n   \u003c/p\u003e\n\n3. **Inicie com docker**\n\n```\ndocker-compose up -d --build\n```\n\n3. **Inicie com Node**\n\n```\nnpm install\nnpm run dev\n```\n\n4. **Defina suas váriaveis de ambiente** observe o arquivo .env.example\n\n5. **O server será iniciado na porta 3100 do seu host**\n\n6. **Inicie o [Frontend](https://github.com/IgorBrizack/mfa-authentication-front)**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Figorbrizack%2Fmfa-authentication-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Figorbrizack%2Fmfa-authentication-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Figorbrizack%2Fmfa-authentication-backend/lists"}