{"id":24539580,"url":"https://github.com/testorg0373/t-jwt","last_synced_at":"2026-01-11T04:47:13.302Z","repository":{"id":143495744,"uuid":"613389385","full_name":"TestOrg0373/t-jwt","owner":"TestOrg0373","description":"A simple library for signing and verifying JWTs in Dart lang. Currently only supports HMAC-256.","archived":false,"fork":false,"pushed_at":"2024-02-13T06:32:46.000Z","size":36,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-16T04:28:00.490Z","etag":null,"topics":["dart","jwt"],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TestOrg0373.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":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-13T13:32:07.000Z","updated_at":"2024-02-13T04:42:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"beb5ed04-5cbd-4597-a158-e0c300ecccf0","html_url":"https://github.com/TestOrg0373/t-jwt","commit_stats":null,"previous_names":["topography-digital/t-jwt","testorg0373/t-jwt"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TestOrg0373%2Ft-jwt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TestOrg0373%2Ft-jwt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TestOrg0373%2Ft-jwt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TestOrg0373%2Ft-jwt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TestOrg0373","download_url":"https://codeload.github.com/TestOrg0373/t-jwt/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243826826,"owners_count":20354220,"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":["dart","jwt"],"created_at":"2025-01-22T17:12:27.147Z","updated_at":"2026-01-03T16:03:41.065Z","avatar_url":"https://github.com/TestOrg0373.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Json Web Token (JWT) library for Dart\nMeant for usage in our web server library but also perfectly suitable for usage independently. File issues \u003ca href=\"https://github.com/akula-shark/t-jwt/issues\"\u003ehere\u003c/a\u003e and see pub.dev page \u003ca href=\"https://pub.dev/packages/t_jwt\"\u003ehere\u003c/a\u003e.\n\n\n\n## Limitations\n- Currently only supports HS256 algorithm\n- Not verified to be safe for production\n- Not 100% compliant with the JWT standard yet\n\n## Getting started\n\n### Add dependency\n```\n$ dart pub add t_jwt\n```\nor add it manually to your `pubspec.yaml` file:\n```yaml\ndependencies:\n  t_jwt: ^replace-with-latest-version\n```\n### Example usage:\n```dart\nimport 'package:t_jwt/t_jwt.dart';\n\nvoid main() {\n  JWT jwt = JWT('your-secret-here');\n\n  Map\u003cString, String\u003e header = {\n    'alg': 'HS256',\n    'typ': 'JWT'\n  };\n\n  Map\u003cString, String\u003e payload = {\n    'name': 'Topography Digital',\n    'username': 'topography.digital',\n  };\n\n  DateTime expiresAt = DateTime.now().add(Duration(days: 1));\n\n  String signed = jwt.sign(header, payload, expiresAt);\n\n  bool isVerified = jwt.verify(signed);\n  \n  // The token\n  print(signed);\n  \n  // True or false depending on if the token is valid\n  print(isVerified);\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftestorg0373%2Ft-jwt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftestorg0373%2Ft-jwt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftestorg0373%2Ft-jwt/lists"}