{"id":15304723,"url":"https://github.com/raphaelvserafim/google-authenticator-ts","last_synced_at":"2026-02-09T14:32:12.692Z","repository":{"id":229762157,"uuid":"777549777","full_name":"raphaelvserafim/google-authenticator-ts","owner":"raphaelvserafim","description":"Este projeto implementa um autenticador compatível com o Google Authenticator, fornecendo funcionalidades para geração de códigos TOTP (Time-based One-Time Password), verificação de códigos, geração de segredos e criação de URLs para códigos QR.","archived":false,"fork":false,"pushed_at":"2024-03-28T03:09:38.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-23T13:00:54.640Z","etag":null,"topics":["2fa","authenticator","google","google-authenticator","nodejs","ts","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/raphaelvserafim.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-03-26T03:55:17.000Z","updated_at":"2024-12-10T08:52:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"7c01c69b-5bec-406f-9ef7-91ccc87a4186","html_url":"https://github.com/raphaelvserafim/google-authenticator-ts","commit_stats":null,"previous_names":["raphaelvserafim/google-authenticator-ts"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/raphaelvserafim/google-authenticator-ts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphaelvserafim%2Fgoogle-authenticator-ts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphaelvserafim%2Fgoogle-authenticator-ts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphaelvserafim%2Fgoogle-authenticator-ts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphaelvserafim%2Fgoogle-authenticator-ts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raphaelvserafim","download_url":"https://codeload.github.com/raphaelvserafim/google-authenticator-ts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphaelvserafim%2Fgoogle-authenticator-ts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29268885,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-09T13:47:44.167Z","status":"ssl_error","status_checked_at":"2026-02-09T13:47:43.721Z","response_time":56,"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":["2fa","authenticator","google","google-authenticator","nodejs","ts","typescript"],"created_at":"2024-10-01T07:57:34.289Z","updated_at":"2026-02-09T14:32:12.634Z","avatar_url":"https://github.com/raphaelvserafim.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Google Authenticator\n\nEste projeto implementa um autenticador compatível com o Google Authenticator, fornecendo funcionalidades para geração de códigos TOTP (Time-based One-Time Password), verificação de códigos, geração de segredos e criação de URLs para códigos QR.\n\n## Começando\n\nEstas instruções vão te mostrar como obter uma cópia do projeto em funcionamento na sua máquina local para fins de desenvolvimento e teste.\n\n```sh\nnpm i @raphaelvserafim/google-authenticator\n```\n\n# Uso\n```ts\nimport { GoogleAuthenticator } from \"@raphaelvserafim/google-authenticator\";\n```\n### ou\n```js\nconst { GoogleAuthenticator } = require(\"@raphaelvserafim/google-authenticator\");\n```\n\n## Gerando um Segredo para Autenticação:\n```js\nconst authenticator = new GoogleAuthenticator();\nconst secret = authenticator.createSecret();\nconsole.log({secret});\n``` \n\n## Criando uma URL do Qrcode:\n```js\nconst url = authenticator.getQRCodeGoogleUrl('Test User', secret, 'Test Title');\nconsole.log({ url });\n``` \n\n## Verificando um Código TOTP:\n```js\nconst isValid = authenticator.verifyCode(secret, code);\n``` \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraphaelvserafim%2Fgoogle-authenticator-ts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraphaelvserafim%2Fgoogle-authenticator-ts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraphaelvserafim%2Fgoogle-authenticator-ts/lists"}