{"id":21590246,"url":"https://github.com/corbado/example-passkeys-nextauth","last_synced_at":"2025-04-10T21:56:42.222Z","repository":{"id":199526864,"uuid":"690942654","full_name":"corbado/example-passkeys-nextauth","owner":"corbado","description":"NextAuth.js repository of an integration example that offers passkey authentication.","archived":false,"fork":false,"pushed_at":"2024-10-16T13:35:12.000Z","size":119,"stargazers_count":11,"open_issues_count":2,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-10T21:56:31.264Z","etag":null,"topics":["authjs","faceid","fido2","javascript","nextauth","nextjs","passkey","passkeys","touchid","webauthn"],"latest_commit_sha":null,"homepage":"https://www.corbado.com/passkeys/next-js","language":"TypeScript","has_issues":true,"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/corbado.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}},"created_at":"2023-09-13T07:35:07.000Z","updated_at":"2025-01-12T17:59:35.000Z","dependencies_parsed_at":"2023-10-10T21:03:36.495Z","dependency_job_id":null,"html_url":"https://github.com/corbado/example-passkeys-nextauth","commit_stats":null,"previous_names":["corbado/example-passkeys-nextauth"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/corbado%2Fexample-passkeys-nextauth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/corbado%2Fexample-passkeys-nextauth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/corbado%2Fexample-passkeys-nextauth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/corbado%2Fexample-passkeys-nextauth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/corbado","download_url":"https://codeload.github.com/corbado/example-passkeys-nextauth/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248305837,"owners_count":21081574,"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","faceid","fido2","javascript","nextauth","nextjs","passkey","passkeys","touchid","webauthn"],"created_at":"2024-11-24T16:17:14.830Z","updated_at":"2025-04-10T21:56:42.201Z","avatar_url":"https://github.com/corbado.png","language":"TypeScript","readme":"# NextAuth.js Passkey Integration Example\n\nThis is a sample implementation of a NextAuth.js application that offers passkey authentication. For simple passkey-first authentication, Corbado's [passkey association approach](https://docs.corbado.com/products/corbado-connect/connect-via-passkey-association) is used.\n\nPlease see the [full blog post](https://www.corbado.com/blog/passkeys-nextauth) to understand the detailed steps needed to integrate passkeys with NextAuth.js.\n\n## File structure\n\n```\n├── pages\n|   ├── api\n|   |   ...\n|   |   └── auth\n|   |       ├── [...nextauth].ts   # Configuration of the authentication providers\n|   |       └── associate.ts       # Endpoint which requests an association token from Corbado\n|   |   \n|   ├── auth\n|   |   ├── redirect.tsx            # Page where the user gets redirected to by Corbado after authentication\n|   |   └── signin.tsx              # Sign in page which also contains the Corbado login web component\n|   |\n|   └── index.tsx                   # Main page which is shown when no path is given\n|\n├── .env.local                      # Contains the environment variables\n```\n\n## Prerequisites\n\nPlease follow the steps in [Getting started](https://docs.corbado.com/overview/getting-started) to create and configure\na project in the [Corbado developer panel](https://app.corbado.com/signin#register).\n\nCreate a .env.local file and paste your Corbado project ID in there as well as credentials for at least one OAuth provider as shown in .env.local.\n\n## Usage\n\nThen you can run the project locally by executing the following command:\n\n```bash\nnpm install \u0026\u0026 npm run dev\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcorbado%2Fexample-passkeys-nextauth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcorbado%2Fexample-passkeys-nextauth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcorbado%2Fexample-passkeys-nextauth/lists"}