{"id":30496894,"url":"https://github.com/railscltgroup/firebase_auth","last_synced_at":"2025-08-25T02:19:23.583Z","repository":{"id":56846516,"uuid":"178591435","full_name":"railscltgroup/firebase_auth","owner":"railscltgroup","description":"Authenticate Firebase User Tokens in Ruby","archived":false,"fork":false,"pushed_at":"2020-08-29T13:43:40.000Z","size":34,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"release","last_synced_at":"2025-07-23T13:18:51.198Z","etag":null,"topics":["firebase","firebase-token","jwt","ruby","rubygem"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/railscltgroup.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}},"created_at":"2019-03-30T17:40:42.000Z","updated_at":"2020-08-29T13:43:42.000Z","dependencies_parsed_at":"2022-09-09T00:52:44.277Z","dependency_job_id":null,"html_url":"https://github.com/railscltgroup/firebase_auth","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/railscltgroup/firebase_auth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/railscltgroup%2Ffirebase_auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/railscltgroup%2Ffirebase_auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/railscltgroup%2Ffirebase_auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/railscltgroup%2Ffirebase_auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/railscltgroup","download_url":"https://codeload.github.com/railscltgroup/firebase_auth/tar.gz/refs/heads/release","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/railscltgroup%2Ffirebase_auth/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271773777,"owners_count":24818336,"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","status":"online","status_checked_at":"2025-08-23T02:00:09.327Z","response_time":69,"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":["firebase","firebase-token","jwt","ruby","rubygem"],"created_at":"2025-08-25T02:19:23.115Z","updated_at":"2025-08-25T02:19:23.571Z","avatar_url":"https://github.com/railscltgroup.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ruby Firebase Auth\n\nI have a Rails App where I need to authenticate firebase users on the server-side, not just in JavaScript.\n\nI found these instructions from google:\nhttps://firebase.google.com/docs/auth/admin/verify-id-tokens\n\nUnfortunately, it appears Google does not have support for Ruby. So, I made my own auth file!\n\n## Installation:\n#### Using Rubygems:\n```\ngem install firebase-token-verify\n```\n\n#### Using Bundler\nAdd `gem 'firebase-token-verify'` to your Gemfile and run `bundle install`\n\n## Example use-case scenario:\n1) Lookup your firebase id and add it to your Ruby code, for example: `PROJECT_ID = \u003cyour_firebase_project_id\u003e`\n2) Obtain a user token.  You will need to be connected with JavaScript, or a mobile app, to obtain the user token. I usually obtain a user token using a JavaScript method similar to the one below:\n```sh\nuser.getIdToken(true).then(token =\u003e {\n  // Send this token to your Ruby application\n})\n```\n3) Setup some Ruby code to process the token\n```sh\nrequire 'firebase_ruby_auth'\n\nPROJECT_ID = ENV['\u003cyour_firebase_project_id\u003e']\n\nFirebaseRubyAuth.new(PROJECT_ID).decode_token(token)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frailscltgroup%2Ffirebase_auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frailscltgroup%2Ffirebase_auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frailscltgroup%2Ffirebase_auth/lists"}