{"id":15046669,"url":"https://github.com/auth0/jwtdecode.android","last_synced_at":"2025-05-15T01:05:34.220Z","repository":{"id":42653996,"uuid":"71183878","full_name":"auth0/JWTDecode.Android","owner":"auth0","description":"A library to help you decode JWTs for Android","archived":false,"fork":false,"pushed_at":"2025-01-27T02:12:26.000Z","size":349,"stargazers_count":447,"open_issues_count":10,"forks_count":81,"subscribers_count":27,"default_branch":"master","last_synced_at":"2025-05-14T05:12:54.722Z","etag":null,"topics":["dx-sdk"],"latest_commit_sha":null,"homepage":"https://jwt.io","language":"Java","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-10-17T21:44:20.000Z","updated_at":"2025-04-15T10:20:46.000Z","dependencies_parsed_at":"2023-12-19T18:38:39.535Z","dependency_job_id":"32aa7839-4dd5-4ab1-bbd8-e724bde3d751","html_url":"https://github.com/auth0/JWTDecode.Android","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/auth0%2FJWTDecode.Android","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/auth0%2FJWTDecode.Android/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/auth0%2FJWTDecode.Android/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/auth0%2FJWTDecode.Android/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/auth0","download_url":"https://codeload.github.com/auth0/JWTDecode.Android/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254254039,"owners_count":22039792,"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":["dx-sdk"],"created_at":"2024-09-24T20:53:21.874Z","updated_at":"2025-05-15T01:05:34.201Z","avatar_url":"https://github.com/auth0.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e **Note**\n\u003e As part of our ongoing commitment to best security practices, we have rotated the signing keys used to sign previous releases of this SDK. As a result, new patch builds have been released using the new signing key. Please upgrade at your earliest convenience.\n\u003e\n\u003e While this change won't affect most developers, if you have implemented a dependency signature validation step in your build process, you may notice a warning that past releases can't be verified. This is expected, and a result of the key rotation process. Updating to the latest version will resolve this for you.\n\n![JWTDecode.Android](https://cdn.auth0.com/website/sdks/banners/jwtdecode-android-banner.png)\n\n[![CircleCI](https://img.shields.io/circleci/project/github/auth0/JWTDecode.Android.svg?style=flat-square)](https://circleci.com/gh/auth0/JWTDecode.Android/tree/master)\n[![Maven Central](https://img.shields.io/maven-central/v/com.auth0.android/jwtdecode.svg?style=flat-square)](https://search.maven.org/artifact/com.auth0.android/jwtdecode)\n[![codecov](https://codecov.io/gh/auth0/JWTDecode.android/branch/master/graph/badge.svg)](https://codecov.io/gh/auth0/JWTDecode.android)\n[![javadoc](https://javadoc.io/badge2/com.auth0.android/jwtdecode/javadoc.svg)](https://javadoc.io/doc/com.auth0.android/jwtdecode)\n\n📚 [Documentation](#documentation) • 🚀 [Getting Started](#getting-started) • 💬 [Feedback](#feedback)\n\n## Documentation\n\n- [Docs Site](https://auth0.github.io/react-native-auth0/)\n- [API Reference](https://javadoc.io/doc/com.auth0.android/jwtdecode/latest/index.html)\n- [Examples](https://github.com/auth0/JWTDecode.Android/blob/master/EXAMPLES.md)\n\n## Getting Started\n\n### Installation\nThe library is be available both in Maven Central and JCenter. To start using it add this line to your `build.gradle` dependencies file:\n\n```groovy\nimplementation 'com.auth0.android:jwtdecode:2.0.2'\n```\n\n### Usage\n\nDecode a JWT token\n\n```java\nString token = \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWV9.TJVA95OrM7E2cBab30RMHrHDcEfxjoYZgeFONFh7HgQ\";\nJWT jwt = new JWT(token);\n\nString issuer = jwt.getIssuer(); //get registered claims\nString claim = jwt.getClaim(\"isAdmin\").asString(); //get custom claims\nboolean isExpired = jwt.isExpired(10); // Do time validation with 10 seconds leeway\n```\n\nA `DecodeException` will raise with a detailed message if the token has:\n* An invalid part count.\n* A part not encoded as Base64 + UTF-8.\n* A Header or Payload without a valid JSON format.\n\nCheckout [EXAMPLES](https://github.com/auth0/JWTDecode.Android/blob/master/EXAMPLES.md) for more details on how to use the library\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\n### Raise an issue\nTo provide feedback or report a bug, [please raise an issue on our issue tracker](https://github.com/auth0/JWTDecode.Android/issues).\n\n### Vulnerability Reporting\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---\n\n\u003cp align=\"center\"\u003e\n  \u003cpicture\u003e\n    \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"https://cdn.auth0.com/website/sdks/logos/auth0_light_mode.png\" width=\"150\"\u003e\n    \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://cdn.auth0.com/website/sdks/logos/auth0_dark_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\"\u003eAuth0 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\u003c/p\u003e\n\u003cp align=\"center\"\u003e\nThis project is licensed under the MIT license. See the \u003ca href=\"https://github.com/auth0/JWTDecode.Android/blob/master/LICENSE\"\u003e LICENSE\u003c/a\u003e file for more info.\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fauth0%2Fjwtdecode.android","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fauth0%2Fjwtdecode.android","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fauth0%2Fjwtdecode.android/lists"}