{"id":15523095,"url":"https://github.com/xuwei-k/jwt-scala","last_synced_at":"2025-04-17T06:31:17.646Z","repository":{"id":37928038,"uuid":"193190281","full_name":"xuwei-k/jwt-scala","owner":"xuwei-k","description":"fork from https://github.com/reallylabs/jwt-scala","archived":true,"fork":false,"pushed_at":"2024-11-04T00:15:46.000Z","size":4524,"stargazers_count":3,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-30T23:43:52.726Z","etag":null,"topics":["jwt","play-json","scala"],"latest_commit_sha":null,"homepage":"","language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xuwei-k.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-06-22T04:19:24.000Z","updated_at":"2024-11-25T06:13:32.000Z","dependencies_parsed_at":"2023-12-17T03:21:09.305Z","dependency_job_id":"8e833f5a-ea4e-40e5-ae99-7013a7c57613","html_url":"https://github.com/xuwei-k/jwt-scala","commit_stats":{"total_commits":240,"total_committers":13,"mean_commits":18.46153846153846,"dds":"0.36250000000000004","last_synced_commit":"72f4c195439091bf853ae7a066df9dba69204785"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xuwei-k%2Fjwt-scala","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xuwei-k%2Fjwt-scala/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xuwei-k%2Fjwt-scala/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xuwei-k%2Fjwt-scala/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xuwei-k","download_url":"https://codeload.github.com/xuwei-k/jwt-scala/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249319594,"owners_count":21250578,"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","play-json","scala"],"created_at":"2024-10-02T10:43:30.840Z","updated_at":"2025-04-17T06:31:17.281Z","avatar_url":"https://github.com/xuwei-k.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"jwt-scala\n=========\n\nAn implementation of [JSON Web Tokens](http://self-issued.info/docs/draft-ietf-oauth-json-web-token.html)\n\n### Setup\nJwt-scala has been published for scala 2.12, 2.13 and 3\n\nAdd the dependency to your build.sbt\n\n```scala\nlibraryDependencies += \"com.github.xuwei-k\" %% \"jwt-scala\" % \"\u003cversion\u003e\"\n```\n\n### Usage\n\n#### Encode\n\n```scala\nimport io.really.jwt._\nimport play.api.libs.json.Json\n\nval payload = Json.obj(\"name\" -\u003e \"Ahmed\", \"email\" -\u003e \"ahmed@gmail.com\")\nval jwt = JWT.encode(\"secret-key\", payload)\n```\nBy default Encode will use `HS256` Algorithm but you can pass optional Algorithm\n\n```scala\nval jwt = JWT.encode(\"secret-key\", payload, Some(Algorithm.HS256))\n```\n***Supported algorithm are :*** \n\n- HS256, HS384, HS512\n- RS256, RS384, RS512\n\n#### Decode\n\n```scala\nval payload = Json.obj(\"name\" -\u003e \"Ahmed\", \"email\" -\u003e \"ahmed@gmail.com\")\nval jwt = JWT.encode(\"secret\", payload)\n\nJWT.decode(jwt, Some(\"secret-1234\"))\n```\n\n### Licensing\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at [apache licenses](http://www.apache.org/licenses/LICENSE-2.0)\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxuwei-k%2Fjwt-scala","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxuwei-k%2Fjwt-scala","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxuwei-k%2Fjwt-scala/lists"}