{"id":20630746,"url":"https://github.com/teamhanko/passkeys-example-next-auth","last_synced_at":"2025-04-15T18:24:02.567Z","repository":{"id":211256741,"uuid":"722753631","full_name":"teamhanko/passkeys-example-next-auth","owner":"teamhanko","description":"Next.js and Auth.js example using the Hanko passkey provider","archived":false,"fork":false,"pushed_at":"2024-05-10T03:14:20.000Z","size":218,"stargazers_count":8,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-11T17:13:02.644Z","etag":null,"topics":["nextjs","passkey","typescript","webauthn"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/teamhanko.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-23T21:44:19.000Z","updated_at":"2024-09-19T09:17:56.000Z","dependencies_parsed_at":"2023-12-07T12:33:55.467Z","dependency_job_id":"795fc130-50f7-4f81-a3c4-734fecfb93f2","html_url":"https://github.com/teamhanko/passkeys-example-next-auth","commit_stats":null,"previous_names":["teamhanko/passkeys-example-next-auth"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teamhanko%2Fpasskeys-example-next-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teamhanko%2Fpasskeys-example-next-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teamhanko%2Fpasskeys-example-next-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teamhanko%2Fpasskeys-example-next-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/teamhanko","download_url":"https://codeload.github.com/teamhanko/passkeys-example-next-auth/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249126994,"owners_count":21216902,"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":["nextjs","passkey","typescript","webauthn"],"created_at":"2024-11-16T14:09:26.781Z","updated_at":"2025-04-15T18:24:02.548Z","avatar_url":"https://github.com/teamhanko.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Getting Started\n\nFirst, create `.env.local` and add the following environment variables to it (please make sure to include the quotes around the API key):\n\n```\nPASSKEYS_API_KEY_SECRET=\"\u003cyour secret api key\u003e\"\nNEXT_PUBLIC_TENANT_ID=\u003cyour tenant id\u003e\n```\n\nThese values both come from the Passkey API. The tenant ID will be shown to you when you create a new tenant. The API key must remain secret (don't prefix with `NEXT_PUBLIC_`).\n\nThen install dependencies:\n\n```bash\nnpm install\n# or\nyarn install\n# or\npnpm install\n# or\nbun install\n```\n\nThen run the development server:\n\n```bash\nnpm run dev\n# or\nyarn dev\n# or\npnpm dev\n# or\nbun dev\n```\n\nOpen [http://localhost:3000](http://localhost:3000) with your browser to see the result.\n\n### Then try to log in as one of the following users:\n\n| Username  | Password             |\n| --------- | -------------------- |\n| johnd     | password123          |\n| sergio_mq | very_secure_password |\n\nYou can add more users to the \"database\" in [db.ts](./db.ts) ;-)\n\n### Once logged in, add a passkey to the account\n\nPasskeys can only be added once you're logged in \u0026mdash; now that you are (using the username + password combos above), add a passkey by clicking the \u003ckbd\u003eRegister passkey for johnd\u003c/kbd\u003e button.\n\nWhen you're done, log out.\n\nYou'll be able to log into the same account using the same passkey you just registered. Click on \u003ckbd\u003e🔑 Log in with Passkey\u003c/kbd\u003e and follow the promp that appears.\n\nAt the end, you should be logged in without having had to enter any username/password.\n\n# Community\n\n## Questions, bugs, ideas\n\nIf you have any questions or issues, please check this project's [Q\u0026A section in discussions](https://github.com/teamhanko/hanko/discussions/categories/q-a) and the [open issues](https://github.com/teamhanko/hanko/issues). Feel free to comment on existing issues or create a new issue if you encounter any bugs or have a feature request. For yet unanswered questions, feedback, or new ideas, please open a new discussion.\n\n## Discord community \u0026 X\n\nWe invite you to join our growing [Discord community](https://www.hanko.io/community) if you want to get the latest updates on passkeys, WebAuthn, and this project or if you just want to chat with us. You can also [follow us on X](https://x.com/hanko_io).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteamhanko%2Fpasskeys-example-next-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fteamhanko%2Fpasskeys-example-next-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteamhanko%2Fpasskeys-example-next-auth/lists"}