{"id":15066996,"url":"https://github.com/lucianopalmeida/jwtwrapper","last_synced_at":"2026-01-20T02:47:51.333Z","repository":{"id":56916652,"uuid":"104940831","full_name":"LucianoPAlmeida/JWTWrapper","owner":"LucianoPAlmeida","description":"A Convenience class to wrapper the JWT token string","archived":false,"fork":false,"pushed_at":"2019-08-14T12:13:06.000Z","size":32,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-25T16:56:43.265Z","etag":null,"topics":["convenience","ios","jwt","jwt-token","parser","pods","swift","swift4","wrapper","wrapper-api"],"latest_commit_sha":null,"homepage":null,"language":"Swift","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/LucianoPAlmeida.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-09-26T21:43:39.000Z","updated_at":"2019-08-14T12:13:08.000Z","dependencies_parsed_at":"2022-08-21T03:50:49.855Z","dependency_job_id":null,"html_url":"https://github.com/LucianoPAlmeida/JWTWrapper","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/LucianoPAlmeida/JWTWrapper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LucianoPAlmeida%2FJWTWrapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LucianoPAlmeida%2FJWTWrapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LucianoPAlmeida%2FJWTWrapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LucianoPAlmeida%2FJWTWrapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LucianoPAlmeida","download_url":"https://codeload.github.com/LucianoPAlmeida/JWTWrapper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LucianoPAlmeida%2FJWTWrapper/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265024256,"owners_count":23699589,"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":["convenience","ios","jwt","jwt-token","parser","pods","swift","swift4","wrapper","wrapper-api"],"created_at":"2024-09-25T01:14:58.324Z","updated_at":"2026-01-20T02:47:51.298Z","avatar_url":"https://github.com/LucianoPAlmeida.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JWTWrapper\n\n[![license](https://img.shields.io/github/license/mashape/apistatus.svg)](https://opensource.org/licenses/MIT)\n[![Travis](https://img.shields.io/travis/LucianoPAlmeida/JWTWrapper.svg)](https://travis-ci.org/LucianoPAlmeida/JWTWrapper)\n[![Codecov](https://img.shields.io/codecov/c/github/LucianoPAlmeida/JWTWrapper.svg)](https://codecov.io/gh/LucianoPAlmeida/JWTWrapper)\n\nThis is a convenience library to wrapper the JWT in a structure and make more parser easier. \nThis is **NOT** a JWT issuer or validator, is just a simple abstraction to parse token payload and info in your app.\n\n\n# Instalation\n\n## Carthage   \n  ```\n    github \"LucianoPAlmeida/JWTWrapper\" ~\u003e 1.0\n  ```\n## CocoaPods\n\n  ```\n      pod 'JWTWrapper', '~\u003e 1.0'\n  ``` \n  \n## Usage\n ```swift\n        let jwt = JWT(string: \"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJNZSIsImlhdCI6MTUwNjI4Nzg3MCwiZXhwIjoxNTA2Mzc0MjcwLCJhdWQiOiJ3d3cuZXhhbXBsZS5jb20iLCJzdWIiOiJleGVtcGxlIiwianRpIjoiand0aWQxMCIsIm5iZiI6MTUwNjM3NDI3MCwiZmlyc3RfbmFtZSI6IkpvaG4iLCJsYXN0X25hbWUiOiJEb2UiLCJlbWFpbCI6ImRvZUBleGFtcGxlLmNvbSIsImlkIjoxMiwiaGVpZ2h0IjoxLjc1LCJudW1iZXIiOjc4OX0.sJVuJ39lIouTnTEYlE_0ZlXVp8GXCy9Z7djQwZUDwLI\")\n        \n        // Headers\n        jwt.algorithm // \"HS256\"\n        jwt.type //\"JWT\"\n        \n        // Claims\n        jwt.issuer //\"Me\"\n        jwt.audience //\"www.example.com\")\n        jwt.subject //\"exemple\"\n        jwt.issuedAt //\"2017-09-24\"\n        jwt.expirationDate //\"2017-09-25\"\n        jwt.id //\"jwtid10\" \n        jwt.notBefore //\"2017-09-25\"\n        jwt.isExpired //false or true in case its expired\n        \n        //Payload\n        jwt.payload[\"first_name\"] // \"John\"\n        jwt.payload.string(for: \"last_name\") //\"Doe\"\n        jwt.payload.string(for: \"email\") // \"doe@example.com\"\n        jwt.payload.int(for: \"id\") // 12\n        jwt.payload.double(for: \"height\") // 1.75\n        jwt.payload.float(for: \"height\") // 1.75\n        jwt.payload.number(for: \"number\") // 789\n    \n ```\n# Licence \n\nJWTWrapper is released under the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucianopalmeida%2Fjwtwrapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flucianopalmeida%2Fjwtwrapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucianopalmeida%2Fjwtwrapper/lists"}