{"id":18874023,"url":"https://github.com/mzxyz/react-native-jwt","last_synced_at":"2026-04-29T20:11:06.578Z","repository":{"id":57337952,"uuid":"176171146","full_name":"mzxyz/react-native-jwt","owner":"mzxyz","description":"This library provides JSON web token parser for React-Native","archived":false,"fork":false,"pushed_at":"2019-03-19T01:39:17.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-03-22T22:36:35.117Z","etag":null,"topics":["jwt","react-native"],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","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/mzxyz.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-17T23:03:22.000Z","updated_at":"2023-03-04T05:58:57.000Z","dependencies_parsed_at":"2022-09-15T15:10:28.777Z","dependency_job_id":null,"html_url":"https://github.com/mzxyz/react-native-jwt","commit_stats":null,"previous_names":["mzxyz/react-native-jwt","huanday/react-native-jwt"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/mzxyz/react-native-jwt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mzxyz%2Freact-native-jwt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mzxyz%2Freact-native-jwt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mzxyz%2Freact-native-jwt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mzxyz%2Freact-native-jwt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mzxyz","download_url":"https://codeload.github.com/mzxyz/react-native-jwt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mzxyz%2Freact-native-jwt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32441727,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T18:12:22.909Z","status":"ssl_error","status_checked_at":"2026-04-29T18:11:33.322Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["jwt","react-native"],"created_at":"2024-11-08T05:37:41.390Z","updated_at":"2026-04-29T20:11:06.557Z","avatar_url":"https://github.com/mzxyz.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# react-native-jwt-utils\nThis library provides JSON web token parser for React-Native. Only support `HS256` `HS384` `HS512` algorithm currently.\n\n## Getting started\n\n`$ npm install react-native-jwt-utils --save`\n\n### Mostly automatic installation\n\n`$ react-native link react-native-jwt-utils`\n\n### Manual installation\n\n\n#### iOS\n\n1. In XCode, in the project navigator, right click `Libraries` ➜ `Add Files to [react-native-jwt-utils]`\n2. Go to `node_modules` ➜ `react-native-jwt-utils` and add `RNJWT.xcodeproj`\n3. In XCode, in the project navigator, select your project. Add `libRNJWT.a` to your project's `Build Phases` ➜ `Link Binary With Libraries`\n4. Run your project (`Cmd+R`)\u003c\n\n#### Android\n\n1. Open up `android/app/src/main/java/[...]/MainActivity.java`\n  - Add `import com.reactlibrary.RNJWTPackage;` to the imports at the top of the file\n  - Add `new RNJWTPackage()` to the list returned by the `getPackages()` method\n2. Append the following lines to `android/settings.gradle`:\n  \t```\n  \tinclude ':react-native-jwt-utils'\n  \tproject(':react-native-jwt-utils').projectDir = new File(rootProject.projectDir, \t'../node_modules/react-native-jwt-utils/android')\n  \t```\n3. Insert the following lines inside the dependencies block in `android/app/build.gradle`:\n  \t```\n      compile project(':react-native-jwt-utils')\n  \t```\n\n## Usage\n```javascript\nimport { verify } from 'react-native-jwt-utils';\n\nconst key = 'sf42t3g42g33rfsef24';\nconst token = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.ighoTHFH7ZhkCMjX0JIMVrGTawxm7-eZf5U8TDIuNY8';\n\nverify(token, key)\n\t.then(decodedToken =\u003e ...)\n\t.catch(e =\u003e ...);\n\n```\n  ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmzxyz%2Freact-native-jwt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmzxyz%2Freact-native-jwt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmzxyz%2Freact-native-jwt/lists"}