{"id":13785024,"url":"https://github.com/ZewoGraveyard/JSONWebToken","last_synced_at":"2025-05-11T20:31:53.722Z","repository":{"id":71056485,"uuid":"62718958","full_name":"ZewoGraveyard/JSONWebToken","owner":"ZewoGraveyard","description":null,"archived":false,"fork":false,"pushed_at":"2016-09-27T07:49:43.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-05-18T22:52:44.504Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":false,"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/ZewoGraveyard.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-07-06T12:22:12.000Z","updated_at":"2024-07-22T03:02:27.483Z","dependencies_parsed_at":"2023-02-22T22:30:51.051Z","dependency_job_id":null,"html_url":"https://github.com/ZewoGraveyard/JSONWebToken","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZewoGraveyard%2FJSONWebToken","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZewoGraveyard%2FJSONWebToken/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZewoGraveyard%2FJSONWebToken/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZewoGraveyard%2FJSONWebToken/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ZewoGraveyard","download_url":"https://codeload.github.com/ZewoGraveyard/JSONWebToken/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224713624,"owners_count":17357247,"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":[],"created_at":"2024-08-03T19:00:55.357Z","updated_at":"2024-11-17T21:30:53.983Z","avatar_url":"https://github.com/ZewoGraveyard.png","language":"Swift","funding_links":[],"categories":["Authentication"],"sub_categories":["Miscellaneous"],"readme":"# JSONWebToken\n\n[![Swift][swift-badge]][swift-url]\n[![Zewo][zewo-badge]][zewo-url]\n[![Platform][platform-badge]][platform-url]\n[![License][mit-badge]][mit-url]\n[![Slack][slack-badge]][slack-url]\n[![Travis][travis-badge]][travis-url]\n[![Codebeat][codebeat-badge]][codebeat-url]\n\n## Usage\n\n```swift\nimport JSONWebToken\n\nlet algorithm = JSONWebToken.Algorithm.hs256(key: \"some_secret_key\".data)\n\nvar payload = JSONWebToken.Payload()\npayload.expire(after: Int(12.hours))\npayload.sub = \"username\"\nlet token = try JSONWebToken.encode(payload: payload, algorithm: algorithm)\n\nlet decodedPayload = try JSONWebToken.decode(string: token, algorithm: algorithm)\n```\n\n## Installation\n\n```swift\nimport PackageDescription\n\nlet package = Package(\n    dependencies: [\n        .Package(url: \"https://github.com/Zewo/JSONWebToken.git\", majorVersion: 0, minor: 13),\n    ]\n)\n```\n\n## Support\n\nIf you need any help you can join our [Slack](http://slack.zewo.io) and go to the **#help** channel. Or you can create a Github [issue](https://github.com/Zewo/Zewo/issues/new) in our main repository. When stating your issue be sure to add enough details, specify what module is causing the problem and reproduction steps.\n\n## Community\n\n[![Slack][slack-image]][slack-url]\n\nThe entire Zewo code base is licensed under MIT. By contributing to Zewo you are contributing to an open and engaged community of brilliant Swift programmers. Join us on [Slack](http://slack.zewo.io) to get to know us!\n\n## License\n\nThis project is released under the MIT license. See [LICENSE](LICENSE) for details.\n\n[swift-badge]: https://img.shields.io/badge/Swift-3.0-orange.svg?style=flat\n[swift-url]: https://swift.org\n[zewo-badge]: https://img.shields.io/badge/Zewo-0.7-FF7565.svg?style=flat\n[zewo-url]: http://zewo.io\n[platform-badge]: https://img.shields.io/badge/Platforms-OS%20X%20--%20Linux-lightgray.svg?style=flat\n[platform-url]: https://swift.org\n[mit-badge]: https://img.shields.io/badge/License-MIT-blue.svg?style=flat\n[mit-url]: https://tldrlegal.com/license/mit-license\n[slack-image]: http://s13.postimg.org/ybwy92ktf/Slack.png\n[slack-badge]: https://zewo-slackin.herokuapp.com/badge.svg\n[slack-url]: http://slack.zewo.io\n[travis-badge]: https://travis-ci.org/Zewo/JSONWebToken.svg?branch=master\n[travis-url]: https://travis-ci.org/Zewo/JSONWebToken\n[codebeat-badge]: https://codebeat.co/badges/91d3c452-646e-4098-978a-e1c63843f33e\n[codebeat-url]: https://codebeat.co/projects/github-com-zewo-jsonwebtoken\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FZewoGraveyard%2FJSONWebToken","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FZewoGraveyard%2FJSONWebToken","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FZewoGraveyard%2FJSONWebToken/lists"}