{"id":49479080,"url":"https://github.com/codebar/auth","last_synced_at":"2026-04-30T21:30:30.132Z","repository":{"id":351871494,"uuid":"1212684634","full_name":"codebar/auth","owner":"codebar","description":"Auth for codebar (the project formerly known as auth-auth)","archived":false,"fork":false,"pushed_at":"2026-04-23T21:04:10.000Z","size":494,"stargazers_count":1,"open_issues_count":7,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-23T23:10:50.494Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codebar.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-16T16:16:25.000Z","updated_at":"2026-04-23T21:04:12.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/codebar/auth","commit_stats":null,"previous_names":["codebar/auth"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/codebar/auth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebar%2Fauth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebar%2Fauth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebar%2Fauth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebar%2Fauth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codebar","download_url":"https://codeload.github.com/codebar/auth/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebar%2Fauth/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32478162,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"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":[],"created_at":"2026-04-30T21:30:29.373Z","updated_at":"2026-04-30T21:30:30.121Z","avatar_url":"https://github.com/codebar.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# auth-auth\n\nSmall authentication/profile system for Codebar.\n\n## Local Setup\n\nFor login or registration via GitHub to work, you have create an [oauth2 application](https://github.com/settings/developers). Fetch client id and secret and setup the `.envrc` from included example (in `.envrc-dist`).\n\nThen export `GITHUB_CLIENT_ID` and `GITHUB_CLIENT_SECRET` into the environment. We recommend using [direnv](https://direnv.net/).\n\n---\n\nFor a new run the following:\n\n```sh\nnpm ci\nnpm run db:generate\nnpm run db:migrate\nnpm run dev\n```\n\nTo update your local copy:\n\n```sh\nnpm ci\nnpm run db:migrate\nnpm run dev\n```\n\n---\n\nView the application:\n\n```sh\nopen http://localhost:3000\n```\n\n### Context\n\n- data is saved in a sqlite database\n- the app currently supports username/password, magic-link and GitHub OAuth\n- for magic-link, **inspect the log to fetch the URL**\n\n## What's happening here?\n\nOnce the application is running, you can try out the the following flows:\n\n- sign-up\n- sign-in (username/password, GitHub OAuth, magic-link)\n\nIn addition `/admin` hosts a very basic admin ui (list user, update roles).\n\n## Demo\n\nThere's an additional application (mounted in this setup), that would demonstrate how to determine if a user is logged in.\n\n```sh\nopen http://localhost:3000/demo\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodebar%2Fauth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodebar%2Fauth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodebar%2Fauth/lists"}