{"id":15315752,"url":"https://github.com/wobsoriano/authey","last_synced_at":"2025-06-21T04:36:02.932Z","repository":{"id":64854201,"uuid":"578927489","full_name":"wobsoriano/authey","owner":"wobsoriano","description":"Universal support for Auth.js.","archived":false,"fork":false,"pushed_at":"2023-10-20T17:19:28.000Z","size":835,"stargazers_count":46,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-10T17:58:24.818Z","etag":null,"topics":["auth","authjs","nextauth"],"latest_commit_sha":null,"homepage":"","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/wobsoriano.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2022-12-16T08:15:47.000Z","updated_at":"2024-01-08T08:17:42.000Z","dependencies_parsed_at":"2023-02-16T10:15:48.347Z","dependency_job_id":"34d277da-fabc-46aa-ad6f-3e5a0953dd30","html_url":"https://github.com/wobsoriano/authey","commit_stats":{"total_commits":109,"total_committers":3,"mean_commits":"36.333333333333336","dds":0.01834862385321101,"last_synced_commit":"86d6ff5aa29113e8c5fc482571aefd411ed7c4eb"},"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/wobsoriano/authey","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wobsoriano%2Fauthey","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wobsoriano%2Fauthey/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wobsoriano%2Fauthey/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wobsoriano%2Fauthey/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wobsoriano","download_url":"https://codeload.github.com/wobsoriano/authey/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wobsoriano%2Fauthey/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261064330,"owners_count":23104722,"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":["auth","authjs","nextauth"],"created_at":"2024-10-01T08:51:57.821Z","updated_at":"2025-06-21T04:35:57.904Z","avatar_url":"https://github.com/wobsoriano.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Authey\n\nExpose [Auth.js](https://authjs.dev/) [REST APIs](https://next-auth.js.org/getting-started/rest-api) to any [connect](https://github.com/senchalabs/connect)-compatible Node.js framework.\n\n## Installation\n\n```bash\nnpm install @auth/core authey\n```\n\n## Usage\n\nExpress\n\n```ts\nimport express from 'express'\n\nimport { createAuthMiddleware } from 'authey'\nimport type { AuthConfig } from '@auth/core'\nimport AppleProvider from '@auth/core/providers/apple'\nimport GoogleProvider from '@auth/core/providers/google'\nimport EmailProvider from '@auth/core/providers/email'\n\nconst app = express()\n\nconst authConfig: AuthConfig = {\n  // You can generate a secret here https://generate-secret.vercel.app/32\n  secret: process.env.AUTH_SECRET,\n  trustHost: Boolean(process.env.AUTH_TRUST_HOST),\n  providers: [\n    // OAuth authentication providers\n    AppleProvider({\n      clientId: process.env.APPLE_ID,\n      clientSecret: process.env.APPLE_SECRET,\n    }),\n    GoogleProvider({\n      clientId: process.env.GOOGLE_ID,\n      clientSecret: process.env.GOOGLE_SECRET,\n    }),\n    // Sign in with passwordless email link\n    EmailProvider({\n      server: process.env.MAIL_SERVER,\n      from: '\u003cno-reply@example.com\u003e',\n    }),\n  ],\n}\n\napp.use(createAuthMiddleware(authConfig))\n```\n\nNuxt\n\n```ts\n// server/middleware/auth.ts\nimport { createAuthMiddleware } from 'authey'\nimport { fromNodeMiddleware } from 'h3'\n\nexport default fromNodeMiddleware(createAuthMiddleware(authConfig))\n```\n\nFastify\n\n```ts\nimport Fastify from 'fastify'\nimport Middie from '@fastify/middie'\nimport { createAuthMiddleware } from 'authey'\n\nasync function build() {\n  const fastify = Fastify()\n  await fastify.register(Middie)\n  fastify.use(createAuthMiddleware(authConfig))\n  return fastify\n}\n\n// Plugin: https://github.com/wobsoriano/fastify-next-auth\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwobsoriano%2Fauthey","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwobsoriano%2Fauthey","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwobsoriano%2Fauthey/lists"}