{"id":14989863,"url":"https://github.com/auth0/idtoken-verifier","last_synced_at":"2025-04-09T05:10:53.277Z","repository":{"id":15165422,"uuid":"77632389","full_name":"auth0/idtoken-verifier","owner":"auth0","description":"Lightweight RSA JWT verification","archived":false,"fork":false,"pushed_at":"2024-10-07T06:02:09.000Z","size":2107,"stargazers_count":76,"open_issues_count":2,"forks_count":31,"subscribers_count":17,"default_branch":"master","last_synced_at":"2025-03-21T17:56:25.894Z","etag":null,"topics":["auth","dx-sdk","javascript","jwt","oauth","verify","web"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/auth0.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-12-29T18:36:42.000Z","updated_at":"2024-12-27T06:22:46.000Z","dependencies_parsed_at":"2023-02-19T10:00:19.295Z","dependency_job_id":"8341f7e9-b74d-49ba-8de2-fd402d4443fa","html_url":"https://github.com/auth0/idtoken-verifier","commit_stats":{"total_commits":176,"total_committers":33,"mean_commits":5.333333333333333,"dds":0.8409090909090909,"last_synced_commit":"ef1ebdd4ae5a982905bfbd812508921a8ed35aad"},"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/auth0%2Fidtoken-verifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/auth0%2Fidtoken-verifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/auth0%2Fidtoken-verifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/auth0%2Fidtoken-verifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/auth0","download_url":"https://codeload.github.com/auth0/idtoken-verifier/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247980837,"owners_count":21027808,"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":["auth","dx-sdk","javascript","jwt","oauth","verify","web"],"created_at":"2024-09-24T14:19:02.766Z","updated_at":"2025-04-09T05:10:53.249Z","avatar_url":"https://github.com/auth0.png","language":"JavaScript","readme":"![idtoken-verifier](https://cdn.auth0.com/website/sdks/banners/idtoken-verifier-banner.png)\n\nA lightweight library to decode and verify RSA ID tokens meant for the browser.\n\n[![Build Status][circleci-image]][circleci-url]\n[![NPM version][npm-image]][npm-url]\n[![Coverage][codecov-image]][codecov-url]\n[![License][license-image]][license-url]\n[![Downloads][downloads-image]][downloads-url]\n\n:books: [Documentation](#documentation) - :rocket: [Getting Started](#getting-started) - :computer: [API Reference](#api-reference) - :speech_balloon: [Feedback](#feedback)\n\n## Documentation\n\n- [API Reference](https://auth0.github.io/idtoken-verifier)\n- [Docs Site](https://auth0.com/docs) - explore our Docs site and learn more about Auth0\n\n## Getting Started\n\n### Installation\n\nUsing [npm](https://npmjs.org/) in your project directory run the following command:\n\n```\nnpm install idtoken-verifier\n```\n\n### Verify an ID token\n\nImport the library, create an instance of `IdTokenVerifier` and call the `verify` method to verify an ID token:\n\n```js\nimport IdTokenVerifier from 'idtoken-verifier';\n\nconst verifier = new IdTokenVerifier({\n  issuer: 'https://my.auth0.com/',\n  audience: 'gYSNlU4YC4V1YPdqq8zPQcup6rJw1Mbt'\n});\n\nverifier.verify(id_token, nonce, (error, payload) =\u003e {\n  if (error) {\n    // handle the error\n    return;\n  }\n\n  // do something with `payload`\n});\n```\n\n## API Reference\n\n- [IdTokenVerifier constructor](https://auth0.github.io/idtoken-verifier/IdTokenVerifier.html)\n- [verify](https://auth0.github.io/idtoken-verifier/global.html#verify)\n- [decode](https://auth0.github.io/idtoken-verifier/global.html#decode)\n- [validateAccessToken](https://auth0.github.io/idtoken-verifier/global.html#validateAccessToken)\n\n## Feedback\n\n### Contributing\n\nWe appreciate feedback and contribution to this repo! Before you get started, please see the following:\n\n- [Auth0's general contribution guidelines](https://github.com/auth0/open-source-template/blob/master/GENERAL-CONTRIBUTING.md)\n- [Auth0's code of conduct guidelines](https://github.com/auth0/open-source-template/blob/master/CODE-OF-CONDUCT.md)\n- [The contribution guide](https://github.com/auth0/open-source-template/blob/master/GENERAL-CONTRIBUTING.md)\n\n### Raise an issue\n\nTo provide feedback or report a bug, please [raise an issue on our issue tracker](https://github.com/auth0/idtoken-verifier/issues).\n\n### Vulnerability Reporting\n\nPlease do not report security vulnerabilities on the public GitHub issue tracker. The [Responsible Disclosure Program](https://auth0.com/whitehat) details the procedure for disclosing security issues.\n\n## What is Auth0?\n\n\u003cp align=\"center\"\u003e\n  \u003cpicture\u003e\n    \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://cdn.auth0.com/website/sdks/logos/auth0_dark_mode.png\" width=\"150\"\u003e\n    \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"https://cdn.auth0.com/website/sdks/logos/auth0_light_mode.png\" width=\"150\"\u003e\n    \u003cimg alt=\"Auth0 Logo\" src=\"https://cdn.auth0.com/website/sdks/logos/auth0_light_mode.png\" width=\"150\"\u003e\n  \u003c/picture\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  Auth0 is an easy to implement, adaptable authentication and authorization platform. To learn more checkout \u003ca href=\"https://auth0.com/why-auth0\"\u003eWhy Auth0?\u003c/a\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  This project is licensed under the Apache 2.0 license. See the \u003ca href=\"./LICENSE\"\u003e LICENSE\u003c/a\u003e file for more info.\n\u003c/p\u003e\n\n\n\u003c!-- Vaaaaarrrrsss --\u003e\n\n[npm-image]: https://img.shields.io/npm/v/idtoken-verifier.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/idtoken-verifier\n[circleci-image]: http://img.shields.io/circleci/project/github/auth0/idtoken-verifier.svg?branch=master\u0026style=flat-square\n[circleci-url]: https://circleci.com/gh/auth0/idtoken-verifier\n[codecov-image]: https://img.shields.io/codecov/c/github/auth0/idtoken-verifier.svg?style=flat-square\n[codecov-url]: https://codecov.io/github/auth0/idtoken-verifier?branch=master\n[license-image]: http://img.shields.io/npm/l/idtoken-verifier.svg?style=flat-square\n[license-url]: #license\n[downloads-image]: http://img.shields.io/npm/dm/idtoken-verifier.svg?style=flat-square\n[downloads-url]: https://npmjs.org/package/idtoken-verifier\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fauth0%2Fidtoken-verifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fauth0%2Fidtoken-verifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fauth0%2Fidtoken-verifier/lists"}