{"id":43750295,"url":"https://github.com/vahdet/go-refresh-token-store-redis","last_synced_at":"2026-02-05T13:09:23.465Z","repository":{"id":57647087,"uuid":"122770511","full_name":"vahdet/go-refresh-token-store-redis","owner":"vahdet","description":"A generic refresh token store docker image source code","archived":false,"fork":false,"pushed_at":"2018-03-18T21:47:17.000Z","size":3213,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-20T03:12:27.542Z","etag":null,"topics":["docker-image","go","grpc","redis","refresh-token"],"latest_commit_sha":null,"homepage":"","language":"Go","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/vahdet.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":"2018-02-24T19:04:28.000Z","updated_at":"2018-03-18T21:47:19.000Z","dependencies_parsed_at":"2022-09-18T23:21:29.207Z","dependency_job_id":null,"html_url":"https://github.com/vahdet/go-refresh-token-store-redis","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vahdet/go-refresh-token-store-redis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vahdet%2Fgo-refresh-token-store-redis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vahdet%2Fgo-refresh-token-store-redis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vahdet%2Fgo-refresh-token-store-redis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vahdet%2Fgo-refresh-token-store-redis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vahdet","download_url":"https://codeload.github.com/vahdet/go-refresh-token-store-redis/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vahdet%2Fgo-refresh-token-store-redis/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29122551,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T10:47:47.471Z","status":"ssl_error","status_checked_at":"2026-02-05T10:45:08.119Z","response_time":65,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["docker-image","go","grpc","redis","refresh-token"],"created_at":"2026-02-05T13:09:22.755Z","updated_at":"2026-02-05T13:09:23.458Z","avatar_url":"https://github.com/vahdet.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-refresh-token-store\n\nThis module manages the storage of the **refresh tokens**.\n\nIt listens to the port **5300**.\n\n![alt text](diagram.png)\n\n\u003e Requires a valid refresh token, **cannot generate** one itself.\n\n### Before all\n* Have Go\n* Have gRPC\n* Have Docker\n* Set Environment variables:\n    * `REFRESH_TOKEN_STORE_REDIS_URL` (used in `./dal/client.go`)\n\ninstalled.\n\n### gRPC settings\nEverything starts with designing the [protobuf](https://github.com/google/protobuf) file \n(`./proto/token.proto` for this project) and once the messages and services are designed\n(or changed later) the following command should be run:\n```sh\ncd $GOPATH/src/github.com/vahdet/go-refresh-token-store\nprotoc -I proto proto/token.proto --go_out=plugins=grpc:proto\n``` \n\nThis command will generate (or recreate if it exists) a `.pb.go` file just beside itself. \nIt is `./proto/token.pb.go` here and it allows implementing Go services, repositories, in short any Go code\nbehind the services defined in the `.proto` file.\n\nFor this case, the server implementation is performed in `./grpcserver/server.go` file.\n\n### Git Tips for humble beings\nThe [StackOverflow answer](https://stackoverflow.com/a/23328996/4636715) resembles three lines of general purpose git commands\nthat can be used anytime a change is made and should be committed to `master` branch:\n\n```bash\ngit add .\ngit commit -a -m \"My classical message to be replaced\"\ngit push\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvahdet%2Fgo-refresh-token-store-redis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvahdet%2Fgo-refresh-token-store-redis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvahdet%2Fgo-refresh-token-store-redis/lists"}