{"id":21658298,"url":"https://github.com/tsirysndr/react-native-jsontokens","last_synced_at":"2026-05-19T00:07:29.618Z","repository":{"id":57337889,"uuid":"109602859","full_name":"tsirysndr/react-native-jsontokens","owner":"tsirysndr","description":"React Native library for signing, decoding, and verifying JSON Web Tokens (JWTs)","archived":false,"fork":false,"pushed_at":"2019-03-29T07:38:05.000Z","size":23,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-05T21:56:28.305Z","etag":null,"topics":["jwt","jwt-token","react-native"],"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/tsirysndr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-05T18:01:00.000Z","updated_at":"2019-03-29T07:38:06.000Z","dependencies_parsed_at":"2022-09-03T08:01:36.319Z","dependency_job_id":null,"html_url":"https://github.com/tsirysndr/react-native-jsontokens","commit_stats":null,"previous_names":["realtsiry/react-native-jsontokens"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsirysndr%2Freact-native-jsontokens","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsirysndr%2Freact-native-jsontokens/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsirysndr%2Freact-native-jsontokens/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsirysndr%2Freact-native-jsontokens/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tsirysndr","download_url":"https://codeload.github.com/tsirysndr/react-native-jsontokens/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244555623,"owners_count":20471470,"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":["jwt","jwt-token","react-native"],"created_at":"2024-11-25T09:29:03.132Z","updated_at":"2026-05-19T00:07:29.585Z","avatar_url":"https://github.com/tsirysndr.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Native JSON Tokens JS\n\n\nReact Native library for signing, decoding, and verifying JSON Web Tokens (JWTs)\n\n### NOTE\nThis library requires [rn-nodeify](https://github.com/tradle/rn-nodeify)\n\n### Installation\n\n```\nnpm install react-native-jsontokens\n```\n\n### Signing Tokens\n\n```js\nimport { TokenSigner } from 'react-native-jsontokens'\n\nconst rawPrivateKey = '278a5de700e29faae8e40e366ec5012b5ec63d36ec77e8a2417154cc1d25383f'\nconst tokenPayload = {\"iat\": 1440713414.85}\nconst token = new TokenSigner('ES256k', rawPrivateKey).sign(tokenPayload)\n```\n\n### Creating Unsecured Tokens\n\n```js\nimport { createUnsecuredToken } from 'react-native-jsontokens'\n\nconst createUnsecuredToken(tokenPayload)\n```\n\n### Decoding Tokens\n\n```js\nimport { decodeToken } = from 'react-native-jsontokens'\nconst tokenData = decodeToken(token)\n```\n\n### Verifying Tokens\n\n```js\nimport { TokenVerifier } from 'react-native-jsontokens'\nconst rawPublicKey = '03fdd57adec3d438ea237fe46b33ee1e016eda6b585c3e27ea66686c2ea5358479'\nconst verified = new TokenVerifier('ES256k', rawPublicKey).verify(token)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsirysndr%2Freact-native-jsontokens","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftsirysndr%2Freact-native-jsontokens","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsirysndr%2Freact-native-jsontokens/lists"}