{"id":21128810,"url":"https://github.com/oslo-project/otp","last_synced_at":"2025-07-09T00:31:31.005Z","repository":{"id":239115925,"uuid":"796145333","full_name":"oslo-project/otp","owner":"oslo-project","description":"One-time passwords with HOTP and TOTP","archived":false,"fork":false,"pushed_at":"2024-11-02T01:36:01.000Z","size":63,"stargazers_count":57,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-02T02:25:54.696Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://otp.oslojs.dev","language":"TypeScript","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/oslo-project.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","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},"funding":{"github":"pilcrowOnPaper"}},"created_at":"2024-05-05T04:22:44.000Z","updated_at":"2024-11-02T01:36:05.000Z","dependencies_parsed_at":"2024-05-10T05:27:29.683Z","dependency_job_id":"5cebada1-2b7e-429a-bde8-cc0db7f757cf","html_url":"https://github.com/oslo-project/otp","commit_stats":null,"previous_names":["oslo-project/otp"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oslo-project%2Fotp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oslo-project%2Fotp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oslo-project%2Fotp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oslo-project%2Fotp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oslo-project","download_url":"https://codeload.github.com/oslo-project/otp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225470728,"owners_count":17479368,"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":[],"created_at":"2024-11-20T05:02:59.237Z","updated_at":"2024-11-20T05:03:05.718Z","avatar_url":"https://github.com/oslo-project.png","language":"TypeScript","readme":"# @oslojs/otp\n\n**Documentation: https://otp.oslojs.dev**\n\nA JavaScript library for generating and verifying OTPs by [Oslo](https://oslojs.dev).\n\nSupports HMAC-based one-time passwords (HOTP) and time-based one-time passwords (TOTP) as defined in [RFC 4226](https://datatracker.ietf.org/doc/html/rfc4226) and [RFC 6238](https://datatracker.ietf.org/doc/html/rfc6238).\n\n- Runtime-agnostic\n- No third-party dependencies\n- Fully typed\n\n```ts\nimport { generateTOTP, verifyTOTP } from \"@oslojs/otp\";\n\nconst totp = generateTOTP(key, 30, 6);\nconst valid = verifyTOTP(totp, key, 30, 6);\n```\n\n## Installation\n\n```\nnpm i @oslojs/otp\n```\n","funding_links":["https://github.com/sponsors/pilcrowOnPaper"],"categories":["TypeScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foslo-project%2Fotp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foslo-project%2Fotp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foslo-project%2Fotp/lists"}