{"id":23665910,"url":"https://github.com/matter-in-motion/mm-user-auth-passwordless","last_synced_at":"2025-12-08T12:30:13.770Z","repository":{"id":57299153,"uuid":"115881773","full_name":"matter-in-motion/mm-user-auth-passwordless","owner":"matter-in-motion","description":"User passwordless authentication via email","archived":false,"fork":false,"pushed_at":"2018-04-26T18:46:14.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-30T12:03:35.449Z","etag":null,"topics":["api","authentication","extension","matter-in-motion","passwordless"],"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/matter-in-motion.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}},"created_at":"2017-12-31T19:30:08.000Z","updated_at":"2018-04-26T18:46:12.000Z","dependencies_parsed_at":"2022-08-26T18:02:39.373Z","dependency_job_id":null,"html_url":"https://github.com/matter-in-motion/mm-user-auth-passwordless","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matter-in-motion%2Fmm-user-auth-passwordless","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matter-in-motion%2Fmm-user-auth-passwordless/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matter-in-motion%2Fmm-user-auth-passwordless/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matter-in-motion%2Fmm-user-auth-passwordless/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matter-in-motion","download_url":"https://codeload.github.com/matter-in-motion/mm-user-auth-passwordless/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239665969,"owners_count":19677059,"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":["api","authentication","extension","matter-in-motion","passwordless"],"created_at":"2024-12-29T06:19:49.904Z","updated_at":"2025-12-08T12:30:13.714Z","avatar_url":"https://github.com/matter-in-motion.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Matter In Motion. User passwordless authentication via email extension\n\n[![NPM Version](https://img.shields.io/npm/v/mm-user-auth-passwordless.svg?style=flat-square)](https://www.npmjs.com/package/mm-user-auth-passwordless)\n[![NPM Downloads](https://img.shields.io/npm/dt/mm-user-auth-passwordless.svg?style=flat-square)](https://www.npmjs.com/package/mm-user-auth-passwordless)\n\nThis extension adds a **passwordless** method to authenticate users in your app. It works like this:\n\n1. User enters email\n2. App sends a token to user's email\n3. User clicks on the link inside the email\n4. The app checks the token and returns an authentication token\n5. Done!\n\n## Usage\n\n[Extensions installation instructions](https://github.com/matter-in-motion/mm/blob/master/docs/extensions.md)\n\n## Dependencies\n\n* __[user](https://github.com/matter-in-motion/mm-user)__\n* __[mail](https://github.com/matter-in-motion/mm-mail)__\n\n## Settings\n\nFirst, you need to define user authentication provider as [here](https://github.com/matter-in-motion/mm/blob/master/docs/authentication.md)\n\nThis extension adds settings to the user settings.\n\n* **login**\n  - expiresIn: '15 mins' — string, login token expiration time\n  - subject — string, login token email subject (Tip: if no subject defined `mail` takes the subject from the `\u003ctitle\u003e` tag in the email)\n  - template — string, the path to login token email template\n\n\n## API\n\n### user.sendAuthentication\n\nSends authentication token to the email\n\n**Request**\n\n* **email** — user's email\n* data — additional data to add to the token\n  - redirect — redirect URL. You can use it to return a user to the page he logged in from.\n\n**Response**\n\n* true — if token send\n* `NotFound` error, code 4540 — when user not found\n\n### user.authenticate\n\nAuthenticates the user and returns authentication token to use with API.\n\n**Request**\n\ntoken from email\n\n**Response**\n\n* **token** — authentication token\n* **expires** — timestamp when token will expire\n* redirect — URL, where the user logged in from\n\n* `Unauthorized` error, code 4100 — when no user authenticated\n\nLicense MIT;\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatter-in-motion%2Fmm-user-auth-passwordless","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatter-in-motion%2Fmm-user-auth-passwordless","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatter-in-motion%2Fmm-user-auth-passwordless/lists"}