{"id":23398701,"url":"https://github.com/iqhater/auth-cookie-example","last_synced_at":"2025-04-08T19:38:06.446Z","repository":{"id":225196165,"uuid":"288858352","full_name":"iqhater/auth-cookie-example","owner":"iqhater","description":"Simple auth app example with cookie and jwt sessions.","archived":false,"fork":false,"pushed_at":"2024-11-28T15:06:52.000Z","size":15652,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-14T15:22:16.005Z","etag":null,"topics":["auth","cookie-sessions","cookies","jwt","login","middleware","website"],"latest_commit_sha":null,"homepage":"https://cookie.envdev.space","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/iqhater.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-08-19T23:23:29.000Z","updated_at":"2024-11-28T15:06:56.000Z","dependencies_parsed_at":"2024-08-15T15:32:03.969Z","dependency_job_id":"9f986139-fa05-4231-a059-b92335591265","html_url":"https://github.com/iqhater/auth-cookie-example","commit_stats":null,"previous_names":["iqhater/auth-cookie-example"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iqhater%2Fauth-cookie-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iqhater%2Fauth-cookie-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iqhater%2Fauth-cookie-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iqhater%2Fauth-cookie-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iqhater","download_url":"https://codeload.github.com/iqhater/auth-cookie-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247913522,"owners_count":21017161,"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":["auth","cookie-sessions","cookies","jwt","login","middleware","website"],"created_at":"2024-12-22T09:48:16.651Z","updated_at":"2025-04-08T19:38:06.421Z","avatar_url":"https://github.com/iqhater.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eSimple auth app example with cookie sessions.\u003c/h1\u003e\n\u003cdiv align=\"center\"\u003e\n\n![Tests](https://github.com/iqhater/auth-cookie-example/workflows/Tests/badge.svg)\n[![codecov](https://codecov.io/gh/iqhater/auth-cookie-example/branch/master/graph/badge.svg)](https://codecov.io/gh/iqhater/auth-cookie-example)\n[![go report](https://goreportcard.com/badge/github.com/iqhater/auth-cookie-example?style=flat-square)](https://goreportcard.com/report/github.com/iqhater/auth-cookie-example)\n\n\u003c/div\u003e\n\u003chr\u003e\n\n# Description\n\nApp has a one user. See example.env file, where user credentials is located.\n\n[Live demo](https://cookie.envdev.space)\n\n### Screenshot\n\n![Screenshot](./auth_user_page.png)\n\n## Prepare project data\n\n- Create .env file in the root of project and paste inside your user credentials, ports and certificates path. (See example.env file)\n\n- Generate TLS certificates for local usage.\n\n### Generate tls certificates\n\nConvenient way to do that with a great [mkcert](https://github.com/FiloSottile/mkcert) tool.\n\n```bash\nmkcert auth.signin.dev localhost\n```\n\n### Project URL\n\n[http://localhost:8080](https://localhost:8080) (auto redirect to https)\n\n- port specify in .env file\n\n# Useful commands\n\nBuild binary with maximum reduced build size.\n\n### Reduce build size\n\n```bash\ngo build -ldflags \"-s -w\"\nupx -f --brute -o build_name.upx build_name\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiqhater%2Fauth-cookie-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiqhater%2Fauth-cookie-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiqhater%2Fauth-cookie-example/lists"}