{"id":20537443,"url":"https://github.com/gh123man/firebase-admin-swift","last_synced_at":"2026-02-25T10:02:23.818Z","repository":{"id":195366890,"uuid":"621548902","full_name":"gh123man/firebase-admin-swift","owner":"gh123man","description":"Unofficial Firebase admin SDK for Swift","archived":false,"fork":false,"pushed_at":"2025-02-24T00:08:17.000Z","size":40,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-14T07:41:18.707Z","etag":null,"topics":["firebase","swift","vapor"],"latest_commit_sha":null,"homepage":"","language":"Swift","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/gh123man.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}},"created_at":"2023-03-30T22:21:44.000Z","updated_at":"2025-02-24T00:08:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"eee14fb3-313e-48cd-a2d0-58a3c028edcc","html_url":"https://github.com/gh123man/firebase-admin-swift","commit_stats":null,"previous_names":["gh123man/firebase-admin-swift"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/gh123man/firebase-admin-swift","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gh123man%2Ffirebase-admin-swift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gh123man%2Ffirebase-admin-swift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gh123man%2Ffirebase-admin-swift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gh123man%2Ffirebase-admin-swift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gh123man","download_url":"https://codeload.github.com/gh123man/firebase-admin-swift/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gh123man%2Ffirebase-admin-swift/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29817070,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-25T05:36:42.804Z","status":"ssl_error","status_checked_at":"2026-02-25T05:36:31.934Z","response_time":61,"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":["firebase","swift","vapor"],"created_at":"2024-11-16T00:40:39.066Z","updated_at":"2026-02-25T10:02:23.785Z","avatar_url":"https://github.com/gh123man.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Unofficial Firebase admin SDK for Swift\n\nThis repo implements (some of) the firebase API in swift for use in [Vapor](https://vapor.codes/) projects. This library uses the `serviceAccountKey.json` like the official libraries. Fetches the firebase admin OAuth token, validates user ID tokens, and more. \n\n## Usage\n\nAdd the package dependency to your `Package.swift`\n\n```swift\n.package(url: \"https://github.com/gh123man/firebase-admin-swift\", from: \"0.0.1\"),\n...\n\n.target(name: \"App\", dependencies: [\n    .product(name: \"Vapor\", package: \"vapor\"),\n    .product(name: \"Firebase\", package: \"firebase-admin-swift\")\n])\n```\n\nIn `configure.swift`\n\n```swift\nimport Firebase\n\n// Called before your application initializes.\nfunc configure(_ app: Application) throws {\n    let serviceAccountKey: String = // Load your serviceAccountKey.json file\n    try app.firebase.loadConfig(from: serviceAccountKey)\n}\n```\n\nIn your app\n\n```swift \n\n// Validate an ID token\nlet jwtResponse = try await app.firebase.auth.validate(idToken: token)\n\n// Fetch all users\nlet users = try await app.firebase.auth.getUsers()\n\n// Fetch a single user\nlet user = try await app.firebase.auth.getUser(uid: \"abcdefg1234567\")\n\n// Delete a single user\ntry await app.firebase.auth.deleteUser(uid: \"abcdefg1234567\")\n\n// Send an FCM message\ntry await app.firebase.messaging.send(FcmMessage(\n    notification: FcmNotification(title: \"foo\", body: \"bar\"),\n    token: \"MY_TOKEN\"))\n\n```\n\nAlso works on `req.firebase`\n\n## TODO\n\nOnly a few methods are implemented (see above), and several arguments/query parameters are missing. The ground work is done, so adding new methods should be fairly simple. Feel free to open an issue or PR. \n\n\n## Notes\n\n- This library uses the `app.cache` to store tokens before they expire. \n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgh123man%2Ffirebase-admin-swift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgh123man%2Ffirebase-admin-swift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgh123man%2Ffirebase-admin-swift/lists"}