{"id":28125067,"url":"https://github.com/passport/todos-express-email","last_synced_at":"2025-10-26T13:17:17.580Z","repository":{"id":46069045,"uuid":"399996694","full_name":"passport/todos-express-email","owner":"passport","description":"Todo app using Express, Passport, and SendGrid for sign in with email.","archived":false,"fork":false,"pushed_at":"2023-11-11T18:54:37.000Z","size":425,"stargazers_count":17,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-19T09:57:19.625Z","etag":null,"topics":["email","example","express","magic-link","nodejs","passport","passwordless","sendgrid","sqlite"],"latest_commit_sha":null,"homepage":"","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/passport.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,"governance":null,"roadmap":null,"authors":null,"dei":null},"funding":{"github":"jaredhanson"}},"created_at":"2021-08-26T00:49:11.000Z","updated_at":"2024-11-04T02:34:25.000Z","dependencies_parsed_at":"2024-04-15T01:56:14.442Z","dependency_job_id":"1c86260d-05ac-4099-aefd-4bd077505bd9","html_url":"https://github.com/passport/todos-express-email","commit_stats":{"total_commits":34,"total_committers":1,"mean_commits":34.0,"dds":0.0,"last_synced_commit":"7b430e4dc7a8c86f30c9a788fd5ec499d66062b5"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/passport/todos-express-email","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/passport%2Ftodos-express-email","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/passport%2Ftodos-express-email/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/passport%2Ftodos-express-email/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/passport%2Ftodos-express-email/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/passport","download_url":"https://codeload.github.com/passport/todos-express-email/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/passport%2Ftodos-express-email/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281109632,"owners_count":26445326,"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-10-26T02:00:06.575Z","response_time":61,"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":["email","example","express","magic-link","nodejs","passport","passwordless","sendgrid","sqlite"],"created_at":"2025-05-14T09:20:03.054Z","updated_at":"2025-10-26T13:17:17.518Z","avatar_url":"https://github.com/passport.png","language":"CSS","funding_links":["https://github.com/sponsors/jaredhanson"],"categories":[],"sub_categories":[],"readme":"# todos-express-email\n\nThis app illustrates how to use [Passport](https://www.passportjs.org/) with\n[Express](https://expressjs.com/) to sign users in with email.  Use this example\nas a starting point for your own web applications.\n\n## Quick Start\n\nTo run this app, clone the repository and install dependencies:\n\n```bash\n$ git clone https://github.com/passport/todos-express-email.git\n$ cd todos-express-email\n$ npm install\n```\n\nThis app must be configured with a SendGrid API key.\n\nOnce credentials have been obtained, create a `.env` file and add the following\nenvironment variables:\n\n```\nSENDGRID_API_KEY=__INSERT_API_KEY_HERE__\n```\n\nStart the server.\n\n```bash\n$ npm start\n```\n\nNavigate to [`http://localhost:3000`](http://localhost:3000).\n\n## Tutorial\n\nFollow along with the step-by-step [Email Magic Link Tutorial](https://www.passportjs.org/tutorials/email/)\nto learn how this app was built.\n\n## Overview\n\nThis app illustrates how to build a todo app with sign in functionality using\nExpress, Passport, and the [`passport-magic-link`](https://www.passportjs.org/packages/passport-magic-link/)\nstrategy.\n\nThis app is a traditional web application, in which application logic and data\npersistence resides on the server.  HTML pages and forms are rendered by the\nserver and client-side JavaScript is not utilized (or kept to a minimum).\n\nThis app is built using the Express web framework.  Data is persisted to a\n[SQLite](https://www.sqlite.org/) database.  HTML pages are rendered using [EJS](https://ejs.co/)\ntemplates, and are styled using vanilla CSS.\n\nWhen a user first arrives at this app, they are prompted to sign in.  To sign\nin, the user clicks a magic link that is sent to their email address via\n[SendGrid](https://sendgrid.com/)'s API.  Once authenticated, a login session is\nestablished and maintained between the server and the user's browser with a\ncookie.\n\nAfter signing in, the user can view, create, and edit todo items.  Interaction\noccurs by clicking links and submitting forms, which trigger HTTP requests.\nThe browser automatically includes the cookie set during login with each of\nthese requests.\n\nWhen the server receives a request, it authenticates the cookie and restores the\nlogin session, thus authenticating the user.  It then accesses or stores records\nin the database associated with the authenticated user.\n\n## License\n\n[The Unlicense](https://opensource.org/licenses/unlicense)\n\n## Credit\n\nCreated by [Jared Hanson](https://www.jaredhanson.me/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpassport%2Ftodos-express-email","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpassport%2Ftodos-express-email","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpassport%2Ftodos-express-email/lists"}