{"id":24926367,"url":"https://github.com/yingyeothon/auth-api","last_synced_at":"2025-03-28T12:25:35.643Z","repository":{"id":37876214,"uuid":"229292531","full_name":"yingyeothon/auth-api","owner":"yingyeothon","description":"A simple Serverless auth API.","archived":false,"fork":false,"pushed_at":"2024-04-11T04:32:24.000Z","size":945,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-02T12:51:50.916Z","etag":null,"topics":["auth","jwt","serverless"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yingyeothon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2019-12-20T15:49:39.000Z","updated_at":"2023-07-17T05:10:48.000Z","dependencies_parsed_at":"2024-02-27T04:31:17.598Z","dependency_job_id":"5db04de7-2b64-44f2-80c0-841393d73737","html_url":"https://github.com/yingyeothon/auth-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yingyeothon%2Fauth-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yingyeothon%2Fauth-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yingyeothon%2Fauth-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yingyeothon%2Fauth-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yingyeothon","download_url":"https://codeload.github.com/yingyeothon/auth-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246028115,"owners_count":20711962,"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","jwt","serverless"],"created_at":"2025-02-02T12:51:58.770Z","updated_at":"2025-03-28T12:25:35.615Z","avatar_url":"https://github.com/yingyeothon.png","language":"TypeScript","readme":"# Auth\n\nA simple Serverless auth API.\n\n## Development\n\n```bash\nyarn\nyarn deploy\n```\n\n### Environment\n\n- `AWS_PROFILE`\n- `STAGE`\n- `JWT_SECRET_KEY`\n\n### `envrc` example\n\n```bash\nexport AWS_PROFILE=\"it-is-me\"\nexport STAGE=\"production\"\nexport JWT_SECRET_KEY=\"something-very-complex-secret-key\"\n```\n\n## API docs\n\n### Simple\n\nRequest:\n\n```text\nPOST /simple\n{\n  \"name\": string;\n  \"email\": string | undefined;\n  \"application\": string;\n}\n```\n\nResponse: `JWT({name}, 1h)`\n\nRequest example with cURL.\n\n```bash\n$ curl -XPOST https://API.DOMAIN.TLD/simple -d '{\"name\":\"lacti\",\"email\":\"lactrious@gmail.com\",\"application\":\"test\"}'\neyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoibGFjdGkiLCJlbWFpbCI6ImxhY3RyaW91c0BnbWFpbC5jb20iLCJhcHBsaWNhdGlvbnMiOlsidGVzdCJdLCJpYXQiOjE2MjEwNDQyNDIsImV4cCI6MTYyMTA0Nzg0Mn0.SECRET_ENCODED\n```\n\n### Google\n\nRequest:\n\n```text\nPOST /google\n\n{\n  \"token\": string;\n  \"application\": string;\n}\n```\n\nResponse: `JWT({name, email}, 7d)`\n\nRequest example with cURL.\n\n```bash\n$ curl -XPOST https://API.DOMAIN.TLD/google -d '{\"token\":\"GOOGLE_AUTH_TOKEN\",\"application\":\"test\"}'\neyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.PAYLOAD_ENCODED.SECRET_ENCODED\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyingyeothon%2Fauth-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyingyeothon%2Fauth-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyingyeothon%2Fauth-api/lists"}