{"id":22994832,"url":"https://github.com/movsb/google-idtoken-verifier","last_synced_at":"2025-07-01T03:05:51.791Z","repository":{"id":79716135,"uuid":"178360027","full_name":"movsb/google-idtoken-verifier","owner":"movsb","description":"Used to verify JWT Token issued from Google Sign-In.","archived":false,"fork":false,"pushed_at":"2019-11-19T12:58:35.000Z","size":4,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-02T07:22:28.582Z","etag":null,"topics":["google-sign-in","jwt","jwt-verifier"],"latest_commit_sha":null,"homepage":"","language":"Go","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/movsb.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}},"created_at":"2019-03-29T08:01:59.000Z","updated_at":"2024-07-22T09:11:01.000Z","dependencies_parsed_at":"2023-04-14T23:32:42.529Z","dependency_job_id":null,"html_url":"https://github.com/movsb/google-idtoken-verifier","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/movsb/google-idtoken-verifier","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/movsb%2Fgoogle-idtoken-verifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/movsb%2Fgoogle-idtoken-verifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/movsb%2Fgoogle-idtoken-verifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/movsb%2Fgoogle-idtoken-verifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/movsb","download_url":"https://codeload.github.com/movsb/google-idtoken-verifier/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/movsb%2Fgoogle-idtoken-verifier/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262887183,"owners_count":23379767,"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":["google-sign-in","jwt","jwt-verifier"],"created_at":"2024-12-15T05:20:40.556Z","updated_at":"2025-07-01T03:05:51.760Z","avatar_url":"https://github.com/movsb.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Google Sign-In Token Verifier\n\nUsed to verify JWT Token issued from [Google Sign-In](https://developers.google.com/identity/sign-in/web/).\n\n## How to use\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\tgoogleidtokenverifier \"github.com/movsb/google-idtoken-verifier\"\n)\n\nfunc main() {\n\ttoken := \"eyJhbGciOiJSUzI1NiIsImtpZCI6ImE0MzEzZTdmZDFl...\"\n\tclientID := \"YOUR_CLIENT_ID.apps.googleusercontent.com\"\n\tclaims, err := googleidtokenverifier.Verify(token, clientID)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tfmt.Printf(\"Iss:\\t%s\\nSub:\\t%s\\nEmail:\\t%s\\nName:\\t%s\\nDomain:\\t%s\\n\",\n\t\tclaims.Iss, claims.Sub, claims.Email, claims.Name, claims.Domain)\n}\n```\n\n## Features\n\n[All steps](https://developers.google.com/identity/sign-in/web/backend-auth#verify-the-integrity-of-the-id-token) described in Google Sign-In are satisfied.\n\n## G Suite\n\nIf you are using G Suite, be sure that the `Domain` field matches your host suffix.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmovsb%2Fgoogle-idtoken-verifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmovsb%2Fgoogle-idtoken-verifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmovsb%2Fgoogle-idtoken-verifier/lists"}