{"id":17415574,"url":"https://github.com/kevinresol/jsonwebtoken","last_synced_at":"2026-01-06T09:43:20.482Z","repository":{"id":73718689,"uuid":"55296974","full_name":"kevinresol/jsonwebtoken","owner":"kevinresol","description":"JsonWebToken for Haxe","archived":false,"fork":false,"pushed_at":"2021-12-14T07:43:37.000Z","size":67,"stargazers_count":27,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-02T01:29:11.844Z","etag":null,"topics":["haxe","jsonwebtoken","jwt"],"latest_commit_sha":null,"homepage":"","language":"Haxe","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/kevinresol.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2016-04-02T13:47:58.000Z","updated_at":"2024-09-24T14:54:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"2e3a3cae-a29c-4c9c-a612-c51e1f984bee","html_url":"https://github.com/kevinresol/jsonwebtoken","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinresol%2Fjsonwebtoken","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinresol%2Fjsonwebtoken/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinresol%2Fjsonwebtoken/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinresol%2Fjsonwebtoken/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kevinresol","download_url":"https://codeload.github.com/kevinresol/jsonwebtoken/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245939801,"owners_count":20697301,"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":["haxe","jsonwebtoken","jwt"],"created_at":"2024-10-17T01:43:29.967Z","updated_at":"2026-01-06T09:43:15.429Z","avatar_url":"https://github.com/kevinresol.png","language":"Haxe","readme":"# jsonwebtoken [![Build Status](https://travis-ci.org/kevinresol/jsonwebtoken.svg?branch=master)](https://travis-ci.org/kevinresol/jsonwebtoken)\n\nUse JsonWebToken in Haxe\n\t\n##### Supported Algorithms\n\n\n| Target | HS256 | HS384 | HS512 | RS256 | RS384 | RS512 | Remarks|\n| --- | :---: | :---: | :---: | :---: | :---: | :---: | --- | \n| all sys targets | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | Using openssl cli |\n| Node | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | Using Node std lib |\n| PHP | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | Using PHP std lib |\n| Java | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | Using Java std lib |\n| C# | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | Using C# std lib |\n| Python | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | Using Python std lib |\n| Interp | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | Using Haxe std lib |\n| Neko | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | Using Haxe std lib |\n| JS | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | Using Haxe std lib |\n| C++ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | Using Haxe std lib |\n\n\n##### Supported Verifications\n\n- Issuer\n- Audience\n- Expiry\n\t\n# Install\n\n```\nhaxelib install jsonwebtoken\n```\n\n## Usage\n\n### Signing\n\n```haxe\nvar crypto = new NodeCrypto(); // pick a crypto from the jsonwebtoken.crypto package\nvar signer = new BasicSigner(HS256('secret'), crypto);\nvar payload:Claims = {iss: 'issuer'}\nsigner.sign(payload).handle(function(o) switch o {\n\tcase Success(token): trace(token);\n\tcase Failure(e): trace('Failed to sign: $e');\n});\n```\n\n\n### Verifying\n\n```haxe\nvar crypto = new NodeCrypto(); // pick a crypto from the jsonwebtoken.crypto package\nvar verifier = new BasicVerifier(HS256('secret'), crypto, {iss: 'issuer'});\nvar token = ...;\nverifier.verify(token).handle(function(o) switch o {\n\tcase Success(_): trace('verified');\n\tcase Failure(e): trace('Invalid token: $e');\n});\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevinresol%2Fjsonwebtoken","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkevinresol%2Fjsonwebtoken","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevinresol%2Fjsonwebtoken/lists"}