{"id":15147558,"url":"https://github.com/teamhanko/passkeys-t3-stack","last_synced_at":"2026-01-18T08:31:44.341Z","repository":{"id":218493278,"uuid":"741918158","full_name":"teamhanko/passkeys-t3-stack","owner":"teamhanko","description":"A T3 example app with passkey authentication, using Hanko Passkey API","archived":false,"fork":false,"pushed_at":"2024-05-02T11:58:09.000Z","size":2359,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-19T21:49:23.287Z","etag":null,"topics":["nextjs","passkey","t3-stack","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":"mit","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":"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":"2024-01-11T11:34:11.000Z","updated_at":"2025-01-08T04:25:55.000Z","dependencies_parsed_at":"2024-04-03T07:31:36.020Z","dependency_job_id":"dd87a63f-1904-428a-8c3a-d35bf99fbcf2","html_url":"https://github.com/teamhanko/passkeys-t3-stack","commit_stats":null,"previous_names":["teamhanko/t3-stack-with-passkeys","teamhanko/passkeys-t3-stack"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/teamhanko/passkeys-t3-stack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teamhanko%2Fpasskeys-t3-stack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teamhanko%2Fpasskeys-t3-stack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teamhanko%2Fpasskeys-t3-stack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teamhanko%2Fpasskeys-t3-stack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/teamhanko","download_url":"https://codeload.github.com/teamhanko/passkeys-t3-stack/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teamhanko%2Fpasskeys-t3-stack/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28534148,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T00:39:45.795Z","status":"online","status_checked_at":"2026-01-18T02:00:07.578Z","response_time":98,"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":["nextjs","passkey","t3-stack","typescript","webauthn"],"created_at":"2024-09-26T12:42:13.970Z","updated_at":"2026-01-18T08:31:44.321Z","avatar_url":"https://github.com/teamhanko.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Adding Passkey Authentication in a T3 Stack\n\nThis repository demonstrates how to add passkey login functionality to your T3 Stack application using Hanko Passkey API. Passkey authentication is a secure and user-friendly alternative to traditional password-based authentication, providing a seamless login experience for users.\n\nFor a detailed tutorial on implementing passkey login in your Solid.js app, refer to our blog post: [How to add a passkey login to T3 Stack?](https://www.hanko.io/blog/passkeys-t3-stack)\n\n![Passkey demo](/passkey.gif)\n\n## Prerequisites\n\nBefore you begin, ensure you have the following:\n\n- Node.js installed (version 20.0.0 or later)\n- Hanko Passkey API key and tenant ID from [Hanko Cloud](https://cloud.hanko.io/)\n- DB URL. In this case we are using [Supabase](https://supabase.com/)\n\n## Technologies used\n\n- Next.js\n- [Next-Auth](https://authjs.dev/) \n- [Shadcn UI](https://ui.shadcn.com/)\n- [Supabase](https://supabase.com/)\n- [Prisma](https://www.prisma.io/)\n- [Hanko Passkey API](https://www.hanko.io/features/hanko-passkey-api)\n\n\u003e **Note:**\n\u003e You'll need to create a Passkey Project on Hanko Cloud with the App URL `http://localhost:3000`. See our docs to learn how to setup a [passkey project](https://docs.hanko.io/passkey-api/setup-passkey-project).\n\n## Getting started\n\n1. Clone the repository\n\n```bash\ngit clone https://github.com/teamhanko/t3-stack-with-passkeys.git\n```\n\n2. Set up environment variables\n\n   * Create a `.env` file in the root directory and add the following environment variables:\n\n\n    ```sh\n    NEXTAUTH_SECRET=random-string\n    NEXTAUTH_URL=http://localhost:3000\n\n    GITHUB_ID=\n    GITHUB_SECRET_ID=\n\n    DATABASE_URL=your-db-url\n\n    PASSKEYS_API_KEY=your-hanko-passkey-api-key\n    NEXT_PUBLIC_PASSKEYS_TENANT_ID=your-hanko-passkey-tenant-id\n    ```\n\n   * Replace `your-hanko-passkey-api-key` and `your-hanko-passkey-tenant-id` with your actual Hanko Passkey API key and tenant ID.\n\n1. Install the dependencies using your preferred package manager (e.g., `npm`, `pnpm`, `yarn`, or `bun`). For this project, we've used `pnpm`:\n\n```bash\npnpm install\n```\n\n4. Start the development server:\n\n```bash\npnpm dev\n```\n\n## Usage\n\n1. Start the application:\n\n   - Access the application by navigating to `http://localhost:3000` in your web browser.\n\n2. Sign up with GitHub.\n\n3. Register a passkey:\n\n   - After logging in, register a passkey for the logged-in user.\n\n4. Log out:\n\n   - After the passkey registration is successful, log out of the application.\n\n5. Login with with a passkey\n\n   - On the login page, choose sign in with a passkey option to authenticate using a passkey.\n\n## Support\n\nFeel free to reach out to us on [Discord](https://hanko.io/community) if you get into any issues.\n\n## License\n\nThis project is licensed under the MIT License.\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteamhanko%2Fpasskeys-t3-stack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fteamhanko%2Fpasskeys-t3-stack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteamhanko%2Fpasskeys-t3-stack/lists"}