{"id":18418550,"url":"https://github.com/bsm/firejwt","last_synced_at":"2025-04-07T13:31:17.948Z","repository":{"id":43096611,"uuid":"235584952","full_name":"bsm/firejwt","owner":"bsm","description":"Validation for Firebase JWT","archived":false,"fork":false,"pushed_at":"2024-08-01T23:16:33.000Z","size":47,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-22T19:02:22.993Z","etag":null,"topics":[],"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/bsm.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}},"created_at":"2020-01-22T13:58:15.000Z","updated_at":"2023-03-30T23:34:53.000Z","dependencies_parsed_at":"2022-09-13T16:51:39.157Z","dependency_job_id":null,"html_url":"https://github.com/bsm/firejwt","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bsm%2Ffirejwt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bsm%2Ffirejwt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bsm%2Ffirejwt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bsm%2Ffirejwt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bsm","download_url":"https://codeload.github.com/bsm/firejwt/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247661651,"owners_count":20975094,"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":[],"created_at":"2024-11-06T04:13:57.465Z","updated_at":"2025-04-07T13:31:17.607Z","avatar_url":"https://github.com/bsm.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FireJWT\n\n[![Test](https://github.com/bsm/firejwt/actions/workflows/test.yml/badge.svg)](https://github.com/bsm/firejwt/actions/workflows/test.yml)\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n\nDecode and validate [Google Firebase](https://firebase.google.com/) JWT tokens with [Ruby](https://www.ruby-lang.org/) and [Go](https://golang.org/).\n\n## Usage\n\n**Ruby**:\n\n```ruby\nrequire 'firejwt'\n\n# Init a validator\nvalidator = FireJWT::Validator.new 'my-project'\n\n# Decode a token\ntoken = begin\n  validator.decode('eyJh...YbQ') # =\u003e {'sub' =\u003e 'me@example.com', 'aud' =\u003e 'my-project'}\nrescue JWT::DecodeError\n  nil\nend\n```\n\n**Go**:\n\n```go\npackage main\n\nimport (\n  \"log\"\n\n  \"github.com/bsm/firejwt\"\n)\n\nfunc main() {\n  vr, err := firejwt.New(\"my-project\")\n  if err != nil {\n    log.Fatalln(err)\n  }\n  defer vr.Stop()\n\n  tk, err := vr.Decode(\"eyJh...YbQ\")\n  if err != nil {\n    log.Fatalln(err)\n  }\n\n  log.Println(tk.Claims) // =\u003e {\"sub\": \"me@example.com\", \"aud\": \"my-project\"}\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbsm%2Ffirejwt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbsm%2Ffirejwt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbsm%2Ffirejwt/lists"}