{"id":15102884,"url":"https://github.com/lewiswatson/firebase-jwt-auth","last_synced_at":"2026-02-16T00:32:16.109Z","repository":{"id":57522941,"uuid":"82377735","full_name":"LewisWatson/firebase-jwt-auth","owner":"LewisWatson","description":"Verify firebase JWT auth tokens","archived":false,"fork":false,"pushed_at":"2017-03-01T22:17:57.000Z","size":65,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-05T11:42:54.631Z","etag":null,"topics":["firebase","firebase-auth","jwt-token"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LewisWatson.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-18T10:03:22.000Z","updated_at":"2017-02-18T10:53:54.000Z","dependencies_parsed_at":"2022-08-28T08:11:42.993Z","dependency_job_id":null,"html_url":"https://github.com/LewisWatson/firebase-jwt-auth","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LewisWatson%2Ffirebase-jwt-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LewisWatson%2Ffirebase-jwt-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LewisWatson%2Ffirebase-jwt-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LewisWatson%2Ffirebase-jwt-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LewisWatson","download_url":"https://codeload.github.com/LewisWatson/firebase-jwt-auth/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247332526,"owners_count":20921852,"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":["firebase","firebase-auth","jwt-token"],"created_at":"2024-09-25T19:09:01.737Z","updated_at":"2025-10-08T17:48:36.284Z","avatar_url":"https://github.com/LewisWatson.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Firebase Authentication JWT Verifier\n\n[![Build Status](https://travis-ci.org/LewisWatson/firebase-jwt-auth.svg?branch=master)](https://travis-ci.org/LewisWatson/firebase-jwt-auth)\n[![Coverage Status](https://coveralls.io/repos/github/LewisWatson/firebase-jwt-auth/badge.svg?branch=master)](https://coveralls.io/github/LewisWatson/firebase-jwt-auth?branch=master)\n[![GoDoc](https://godoc.org/github.com/SermoDigital/jose?status.svg)](https://godoc.org/github.com/LewisWatson/firebase-jwt-auth)\n[![stability-stable](https://img.shields.io/badge/stability-stable-green.svg)](https://github.com/emersion/stability-badges#stable)\n[![Sourcegraph](https://sourcegraph.com/github.com/LewisWatson/firebase-jwt-auth/-/badge.svg)](https://sourcegraph.com/github.com/LewisWatson/firebase-jwt-auth?badge)\n\nThis library follows the instructions described in [verify id tokens using third-party JWT library](https://firebase.google.com/docs/auth/admin/verify-id-tokens#verify_id_tokens_using_a_third-party_jwt_library) section of the firebase documentation.\n\n[Firebase]: https://firebase.google.com/ \"Firebase\"\n[JWT]: https://jwt.io/ \"JWT\"\n\n## Example Usage\n\n```go\nimport (\n\t\"gopkg.in/LewisWatson/firebase-jwt-auth.v1\"\n\t\"github.com/manyminds/api2go\"\n)\n\n// tokenVerifier previously initialised with fireauth.New(\"projectname\")\nfunc verify(r api2go.Request, tokenVerifier fireauth.TokenVerifier) error {\n\ttoken := r.Header.Get(\"authorization\")\n\tuserID, claims, err := tokenVerifier.Verify(token)\n\tif err != nil {\n\t\treturn err\n\t}\n\tr.Context.Set(\"userID\", userID)\n\tr.Context.Set(\"claims\", claims)\n\treturn nil\n}\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flewiswatson%2Ffirebase-jwt-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flewiswatson%2Ffirebase-jwt-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flewiswatson%2Ffirebase-jwt-auth/lists"}