{"id":19386931,"url":"https://github.com/klirix/smol_auth","last_synced_at":"2025-04-23T23:30:48.115Z","repository":{"id":40743873,"uuid":"147085766","full_name":"klirix/smol_auth","owner":"klirix","description":"Smol authentication microservice","archived":false,"fork":false,"pushed_at":"2022-12-22T09:00:35.000Z","size":276,"stargazers_count":6,"open_issues_count":13,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-04-29T18:55:44.414Z","etag":null,"topics":["authentication","passwordless","passwordless-authentication"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/klirix.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-09-02T13:06:09.000Z","updated_at":"2023-02-10T10:37:44.000Z","dependencies_parsed_at":"2023-01-30T06:30:21.257Z","dependency_job_id":null,"html_url":"https://github.com/klirix/smol_auth","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klirix%2Fsmol_auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klirix%2Fsmol_auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klirix%2Fsmol_auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klirix%2Fsmol_auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/klirix","download_url":"https://codeload.github.com/klirix/smol_auth/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223936990,"owners_count":17228140,"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":["authentication","passwordless","passwordless-authentication"],"created_at":"2024-11-10T10:07:53.267Z","updated_at":"2024-11-10T10:07:53.813Z","avatar_url":"https://github.com/klirix.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Smol auth microservice\n\nIt's so smol it doesn't use DB, and keeps all data in-memory.\nIt essentially means that if service to be restarted, everybody who tries to enter will be invalidated, but well, it's almost pure.\n\nIt uses mailgun email service, therefore the API key is required.\n\n# Configuration\n\n### Environment variables\n\nMAILGUN_KEY - API key for Mailgun (required)\n\nMAILGUN_DOMAIN - Domain name for Mailgun (required)\n\nJWT_SECRET - Secret to sign the tokens with (default: ```\"hahaha privacy yeah hight :-D BENIS\"```)\n\nBASE_HOST - base for the url, used for email link (default: ```\"http://localhost:3000\"```)\n\n# Usage\n\nTo spin up dev verison use `yarn dev`/`npm run dev`\nTo spin up prod verison use `yarn start`/`npm start`\n\n# Endpoints\n\nGET ```/enter/:email``` - requests an entery and returns a reference to entry session\n\nGET ```/check/:ref``` - checks if entry session is validated, if so, returns a signed jwt, otherwise ```\"Not yet\"```, or ```\"Wrong code\"``` if ref is invalid\n\nGET ```/confirm/:code``` - validates entry session and returns ```\"Good\"``` otherwise ```\"Yeah right fuck off\"``` if code is invalid\n\nThat's it","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fklirix%2Fsmol_auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fklirix%2Fsmol_auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fklirix%2Fsmol_auth/lists"}