{"id":24725086,"url":"https://github.com/corbado/passkeys-svelte-fastapi","last_synced_at":"2026-03-17T19:25:26.511Z","repository":{"id":274320400,"uuid":"922559261","full_name":"corbado/passkeys-svelte-fastapi","owner":"corbado","description":"Add passkeys to your Svelte and FastAPI application using the Corbado passkey-first authentication solution.","archived":false,"fork":false,"pushed_at":"2025-11-10T08:58:23.000Z","size":270,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-11-10T10:23:35.818Z","etag":null,"topics":["faceid","fastapi","javascript","passkey","passkeys","python","svelte","touchid","typescript","webauthn"],"latest_commit_sha":null,"homepage":"","language":"Python","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/corbado.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-01-26T14:40:44.000Z","updated_at":"2025-11-10T08:58:27.000Z","dependencies_parsed_at":"2025-05-27T16:20:59.524Z","dependency_job_id":"75f3b95b-8c94-469e-806a-29ebaa509b01","html_url":"https://github.com/corbado/passkeys-svelte-fastapi","commit_stats":null,"previous_names":["corbado/passkeys-svelte-fastapi"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/corbado/passkeys-svelte-fastapi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/corbado%2Fpasskeys-svelte-fastapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/corbado%2Fpasskeys-svelte-fastapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/corbado%2Fpasskeys-svelte-fastapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/corbado%2Fpasskeys-svelte-fastapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/corbado","download_url":"https://codeload.github.com/corbado/passkeys-svelte-fastapi/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/corbado%2Fpasskeys-svelte-fastapi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30629230,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-17T17:32:55.572Z","status":"ssl_error","status_checked_at":"2026-03-17T17:32:38.732Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["faceid","fastapi","javascript","passkey","passkeys","python","svelte","touchid","typescript","webauthn"],"created_at":"2025-01-27T13:16:45.086Z","updated_at":"2026-03-17T19:25:26.502Z","avatar_url":"https://github.com/corbado.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg width=\"1070\" alt=\"GitHub Repo Cover\" src=\"https://github.com/corbado/corbado-php/assets/18458907/aa4f9df6-980b-4b24-bb2f-d71c0f480971\"\u003e\n\n# Svelte and FastAPI Passkey Example App\n\nThis is a sample implementation of the [Corbado passkeys-first authentication solution](https://www.corbado.com) using\nSvelte and FastAPI. The following packages are being used:\n\n- [Corbado web-js](https://github.com/corbado/javascript/tree/develop/packages/web-js)\n- [Corbado Python](https://github.com/corbado/corbado-python)\n\n[![integration-guides](https://github.com/user-attachments/assets/7859201b-a345-4b68-b336-6e2edcc6577b)](https://app.corbado.com/integration-guides/svelte-fastapi)\n\n## File structure\n\n- `frontend`: Separate directory for the Svelte frontend\n- `frontend/.env.example`: Example file for environment variables\n- `frontend/src/routes`: Contains all routes used in the frontend\n- `frontend/src/router/index.ts`: Contains the route definitions\n- `frontend/src/stores/user.svelte.ts`: Global store for user data from Corbado and our own backend\n- `backend`: Separate directory for the FastAPI backend\n- `backend/.env.example`: Example file for environment variables\n- `backend/app/main.py`: Entry point for the FastAPI app\n- `backend/app/core/config.py`: Configuration file for the Express app\n- `backend/app/utils`: Collection of utility functions, e.g. helper functions for authentication\n- `backend/app/routes`: Directory configuring the routes for the app\n- `backend/app/db`: Database configuration and queries\n\n## Setup\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/).\n\nYou need to have [Node](https://nodejs.org/en/download) and `npm` installed to run it.\n\n### Configure environment variables\n\nUse the values you obtained in [Prerequisites](#prerequisites) to configure the following variables inside a `.env`\nfile you create in frontend and backend directories respectively:\n\n#### Backend\n\nThe backend needs an api secret to authenticate with the Corbado backend API.\n\n```dotenv\nCORBADO_PROJECT_ID=pro-XXX\nCORBADO_API_SECRET=corbado1_XXX\nCORBADO_FRONTEND_API=https://{$CORBADO_PROJECT_ID}.frontendapi.cloud.corbado.io\nCORBADO_BACKEND_API=https://backendapi.cloud.corbado.io\n```\n\n#### Frontend\n\nThe frontend needs the project ID and the backend base URL.\n\n```dotenv\nVITE_CORBADO_PROJECT_ID=pro-XXX\nVITE_BACKEND_BASE_URL=http://localhost:3001\n```\n\n## Usage\n\n### Run the project locally\n\nOn macOS and Linux, run the following command in the root directory\n\n```bash\n(cd frontend \u0026\u0026 npm install)\n(cd backend \u0026\u0026 python3 -m venv venv \u0026\u0026 source venv/bin/activate \u0026\u0026 pip install -r requirements.txt \u0026\u0026 alembic upgrade head)\n```\n\nto install all dependencies and initialize the database.\n\nActivating the virtual environment will be different for Windows users.\n\nFinally, you can run the project locally by individually starting up the frontend and backend.\n\n#### Running frontend and backend individually\n\nIn one terminal session, run the following command in the `frontend` directory:\n\n```bash\nnpm run dev\n```\n\nIn another terminal session, run the following command in the `backend` directory with an activated virtual environment:\n\n```bash\nfastapi dev --port 3001\n```\n\n### Troubleshooting\n\nIf you encounter any issues regarding imports in the backend, make sure to set your python path:\n\n```bash\nexport PYTHONPATH=$(pwd)\n```\n\n## Passkeys support\n\n- Community for Developer Support: https://bit.ly/passkeys-community\n- Passkeys Debugger: https://www.passkeys-debugger.io/\n- Passkey Subreddit: https://www.reddit.com/r/passkey/\n\n## Telemetry\n\nThis example application uses telemetry. By gathering telemetry data, we gain a more comprehensive understanding of how our SDKs, components, and example applications are utilized across various scenarios. This information is crucial in helping us prioritize features that are beneficial and impactful for the majority of our users. Read our [official documentation](https://docs.corbado.com/corbado-complete/other/telemetry) for more details.\n\nTo disable telemetry, add the following line to your `frontend/.env` file:\n\n```sh\nVITE_CORBADO_TELEMETRY_DISABLED=true\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcorbado%2Fpasskeys-svelte-fastapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcorbado%2Fpasskeys-svelte-fastapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcorbado%2Fpasskeys-svelte-fastapi/lists"}