{"id":18390621,"url":"https://github.com/nextauthjs/express-auth-example","last_synced_at":"2025-04-07T02:35:15.705Z","repository":{"id":217557670,"uuid":"743318130","full_name":"nextauthjs/express-auth-example","owner":"nextauthjs","description":"Example showing how to use Auth.js with Express.","archived":false,"fork":false,"pushed_at":"2024-05-01T09:26:02.000Z","size":103,"stargazers_count":9,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-05-01T15:40:17.584Z","etag":null,"topics":["authjs","express","express-authentication","oauth2"],"latest_commit_sha":null,"homepage":"https://express-auth-example.vercel.app","language":"TypeScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nextauthjs.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,"publiccode":null,"codemeta":null},"funding":{"open_collective":"nextauth","github":["balazsorban44","ThangHuuVu"]}},"created_at":"2024-01-15T00:40:23.000Z","updated_at":"2024-05-11T08:26:38.699Z","dependencies_parsed_at":"2024-01-17T05:03:57.454Z","dependency_job_id":"66e152d8-3998-4e4d-be42-cc4ac180f3cc","html_url":"https://github.com/nextauthjs/express-auth-example","commit_stats":null,"previous_names":["nextauthjs/express-auth-example"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextauthjs%2Fexpress-auth-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextauthjs%2Fexpress-auth-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextauthjs%2Fexpress-auth-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextauthjs%2Fexpress-auth-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nextauthjs","download_url":"https://codeload.github.com/nextauthjs/express-auth-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247583691,"owners_count":20962065,"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":["authjs","express","express-authentication","oauth2"],"created_at":"2024-11-06T01:48:36.782Z","updated_at":"2025-04-07T02:35:10.685Z","avatar_url":"https://github.com/nextauthjs.png","language":"TypeScript","funding_links":["https://opencollective.com/nextauth","https://github.com/sponsors/balazsorban44","https://github.com/sponsors/ThangHuuVu"],"categories":[],"sub_categories":[],"readme":"\u003e The example repository is maintained from a [monorepo](https://github.com/nextauthjs/next-auth/tree/main/apps/examples/express). Pull Requests should be opened against [`nextauthjs/next-auth`](https://github.com/nextauthjs/next-auth).\n\n\u003cp align=\"center\"\u003e\n   \u003cbr/\u003e\n   \u003ca href=\"https://authjs.dev\" target=\"_blank\"\u003e\n   \u003cimg height=\"64\" src=\"https://authjs.dev/img/logo-sm.png\" /\u003e\n   \u003c/a\u003e\n   \u003ca href=\"https://expressjs.com\" target=\"_blank\"\u003e\n   \u003cimg height=\"64\" src=\"https://i.cloudup.com/zfY6lL7eFa-3000x3000.png\" /\u003e\n   \u003c/a\u003e\n   \u003ch3 align=\"center\"\u003e\u003cb\u003eExpress Auth\u003c/b\u003e - Example App\u003c/h3\u003e\n   \u003cp align=\"center\"\u003e\n   Open Source. Full Stack. Own Your Data.\n   \u003c/p\u003e\n   \u003cp align=\"center\" style=\"align: center;\"\u003e\n      \u003ca href=\"https://npm.im/@auth/express\"\u003e\n        \u003cimg alt=\"npm\" src=\"https://img.shields.io/npm/v/@auth/express?color=green\u0026label=@auth/express\u0026style=flat-square\"\u003e\n      \u003c/a\u003e\n      \u003ca href=\"https://bundlephobia.com/result?p=@auth/express\"\u003e\n        \u003cimg src=\"https://img.shields.io/bundlephobia/minzip/@auth/express?label=size\u0026style=flat-square\" alt=\"Bundle Size\"/\u003e\n      \u003c/a\u003e\n      \u003ca href=\"https://www.npmtrends.com/@auth/express\"\u003e\n        \u003cimg src=\"https://img.shields.io/npm/dm/@auth/express?label=downloads\u0026style=flat-square\" alt=\"Downloads\" /\u003e\n      \u003c/a\u003e\n      \u003ca href=\"https://npm.im/@auth/express\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/TypeScript-blue?style=flat-square\" alt=\"TypeScript\" /\u003e\n      \u003c/a\u003e\n   \u003c/p\u003e\n\u003c/p\u003e\n\n## Overview\n\nThis is the official Express Auth example for [Auth.js](https://express.authjs.dev).\n\n## Getting started\n\nYou can instantly deploy this example to [Vercel](https://vercel.com?utm_source=github\u0026utm_medium=readme\u0026utm_campaign=express-auth-example) by clicking the following button.\n\n[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/git/external?repository-url=https://github.com/nextauthjs/express-auth-example\u0026project-name=express-auth-example\u0026repository-name=express-auth-example)\n\n## Environment Variables\n\nOnce deployed, kindly ensure you set all [required environment variables](https://authjs.dev/getting-started/deployment#environment-variables) in the `Environment` section of your hosting service.\n\n## Node.js Compatibility\n\nThe recommended version of Node.js to use in this example is Node.js v20.0.0.\n\nIf you are using a version of Node.js lower than this (for example the minimum supported node version v18.0.0), you may need to enable Web Crypto API via the `--experimental-webcrypto` flag in the `start` and `dev` scripts of your `package.json` file.\n\nInstead of using the experimental flag, you may use the following polyfill:\n\n```ts\n// polyfill.cjs\nglobalThis.crypto ??= require(\"crypto\").webcrypto\n```\n\nAnd then import it within a top-level file in the application:\n\n```ts\n// server.ts\nimport \"./polyfill.cjs\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnextauthjs%2Fexpress-auth-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnextauthjs%2Fexpress-auth-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnextauthjs%2Fexpress-auth-example/lists"}