{"id":17614157,"url":"https://github.com/thilux/go-jwt","last_synced_at":"2026-05-13T12:44:39.512Z","repository":{"id":94536615,"uuid":"271420604","full_name":"thilux/go-jwt","owner":"thilux","description":null,"archived":false,"fork":false,"pushed_at":"2020-08-10T22:58:54.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-18T20:06:43.221Z","etag":null,"topics":["actions","go","golang","jwt","jwt-claims","jwt-token"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/thilux.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":"2020-06-11T01:13:59.000Z","updated_at":"2020-08-10T22:58:56.000Z","dependencies_parsed_at":"2023-07-28T17:16:49.158Z","dependency_job_id":null,"html_url":"https://github.com/thilux/go-jwt","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thilux/go-jwt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thilux%2Fgo-jwt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thilux%2Fgo-jwt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thilux%2Fgo-jwt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thilux%2Fgo-jwt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thilux","download_url":"https://codeload.github.com/thilux/go-jwt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thilux%2Fgo-jwt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32983694,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T11:31:52.688Z","status":"ssl_error","status_checked_at":"2026-05-13T11:31:52.072Z","response_time":115,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["actions","go","golang","jwt","jwt-claims","jwt-token"],"created_at":"2024-10-22T18:25:08.156Z","updated_at":"2026-05-13T12:44:39.494Z","avatar_url":"https://github.com/thilux.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# thilux JWT\n\n[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/thilux/go-jwt/Go?logo=github\u0026style=for-the-badge)](https://github.com/thilux/go-jwt/actions?query=workflow%3AGo)\n[![codecov](https://img.shields.io/codecov/c/github/thilux/go-jwt/master?logo=codecov\u0026style=for-the-badge)](https://codecov.io/gh/thilux/go-jwt)\n\nThis is a very simple implementation of a JWT encode/decode library in Go. I have mainly done this to play around with some Go concepts and standard library.\n\n## Getting started\n\nTo install thilux's go-jwt:\n        `go get xxxxxxxxx/thilux/jwt`\n\nA very basic usage example:\n\n```go\npackage main\n\nimport (\n    \"fmt\"\n    \"thilux.io/thilux/jwt\"\n)\n\ntype myUserDetails struct {\n\n    Username string `json:\"username\"`\n    FirstName string `json:\"firstName\"`\n    LastName string `json:\"lastName\"`\n    Claims map[string]string `json:\"claims\"`\n}\n\nconst tokenSecret = \"19db940ghf439bf340fgu3bdlkwnhfpehdp\"\n\nfunc main() {\n\n    claims := map[string]string{\"admin\": \"no\", \"email\":\"myuser@email.com\"}\n    userDetails := myUserDetails{Username: \"myuser\", FirstName: \"First\", LastName: \"Last\", Claims: claims}\n\n    token, err := jwt.Encode(userDetails, tokenSecret, \"HS256\")\n\n    if err != nil {\n        fmt.Println(\"Error generating token: \" + err.Error())\n        return\n    }\n\n    fmt.Println(\"Token: \" + token)\n}\n```\n\n## License\n\nThis project is under the Apache License, Version 2.0. See the [LICENSE](LICENSE) file for the full text.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthilux%2Fgo-jwt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthilux%2Fgo-jwt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthilux%2Fgo-jwt/lists"}