{"id":22934645,"url":"https://github.com/frani/easy-no-password","last_synced_at":"2025-08-07T07:20:56.281Z","repository":{"id":57112879,"uuid":"304036427","full_name":"frani/easy-no-password","owner":"frani","description":"🔐 Passwordless and 2FA auth without a database.","archived":false,"fork":false,"pushed_at":"2020-11-25T12:50:21.000Z","size":50,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-20T00:53:46.633Z","etag":null,"topics":["factor-authentication","javascript","npm","passwordless"],"latest_commit_sha":null,"homepage":"","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/frani.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2020-10-14T14:13:08.000Z","updated_at":"2025-05-17T19:23:00.000Z","dependencies_parsed_at":"2022-08-21T13:31:12.125Z","dependency_job_id":null,"html_url":"https://github.com/frani/easy-no-password","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/frani/easy-no-password","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frani%2Feasy-no-password","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frani%2Feasy-no-password/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frani%2Feasy-no-password/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frani%2Feasy-no-password/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/frani","download_url":"https://codeload.github.com/frani/easy-no-password/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frani%2Feasy-no-password/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265222973,"owners_count":23730327,"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":["factor-authentication","javascript","npm","passwordless"],"created_at":"2024-12-14T11:44:33.170Z","updated_at":"2025-07-13T23:35:51.026Z","avatar_url":"https://github.com/frani.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Easy No Password\n\nThe increasing scrutiny over weak passwords has been leading more and more developers to opt for passwordless login flows and two-factor authentication.\n\nPasswordless login and two-factor authentication usually involve emailing or texting a unique token to a user, and giving them a certain amount of time to enter that token into the login screen.\n\nThis library is unique because it uses cryptography techniques to generate timestamped tokens, eliminating the need for a database to store tokens. The tokens themselves contain all the information needed to check for their validity.\n\n## Installation\n\n    $ npm install  @frani/easy-no-password\n\n## Quick Start\n\n```javascript\nconst enp = require('@frani/easy-no-password')\n\n// Creating a token\nlet userid = 'frani'\nlet secret = 'shh-this-is-our-secret'\nlet token = await enp.create(userid, secret) // '8ejx73k9z01'\n\n// Validating a token\nlet token = '8ejx73k9z01'\nlet userid = 'frani'\nlet secret = 'shh-this-is-our-secret'\nlet validated = await enp.validate(token, userid, secret) // TRUE or FALSE\n```\n\n## More Details\n\nThe tokens are 64-bit values encoded into 10-11 ASCII characters. Tokens are generated with a millisecond timestamp resolution. This means that with the default window of 15 minutes, at any point in time, 9e5 tokens are valid out of a total space of 2^64 (0.000000000005%).\n\n## Contributing\n\nContributions are welcome. Before submitting a pull request, please check for errors by running the tests and the JavaScript linter.\n\n    $ cd /path/to/easy-no-password\n    $ npm run test\n    $ npm run lint\n\nPlease also run your changes with an newer version of Node.js; this library supports from to Node.js version 10.x\nGithub Actions will fail if you write code incompatible with Node.js version 10.x\n\n## License\n\nMIT\n\n## Inspiration\n\n[sffc's repository](https://github.com/sffc/easy-no-password)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrani%2Feasy-no-password","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrani%2Feasy-no-password","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrani%2Feasy-no-password/lists"}