{"id":20135802,"url":"https://github.com/maxfi/microauth-token","last_synced_at":"2026-05-13T04:06:12.511Z","repository":{"id":48034512,"uuid":"122962567","full_name":"maxfi/microauth-token","owner":"maxfi","description":"Token auth wrapper for zeit/micro","archived":false,"fork":false,"pushed_at":"2022-12-01T23:18:16.000Z","size":545,"stargazers_count":0,"open_issues_count":10,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-16T23:33:43.653Z","etag":null,"topics":[],"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/maxfi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-26T11:50:53.000Z","updated_at":"2020-07-16T11:26:56.000Z","dependencies_parsed_at":"2023-01-22T14:00:58.101Z","dependency_job_id":null,"html_url":"https://github.com/maxfi/microauth-token","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxfi%2Fmicroauth-token","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxfi%2Fmicroauth-token/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxfi%2Fmicroauth-token/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxfi%2Fmicroauth-token/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maxfi","download_url":"https://codeload.github.com/maxfi/microauth-token/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241582527,"owners_count":19985846,"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":[],"created_at":"2024-11-13T21:16:35.501Z","updated_at":"2025-11-29T06:06:25.812Z","avatar_url":"https://github.com/maxfi.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# microauth-token\n\n\u003e Token auth wrapper for zeit/micro\n\nUnfortunately not all third-parties are able or willing to add the `Authorization` header to a request, especially with webhooks. However, it's possible to add a token to the query string and use that for authorizing requests.\n\n## Install\n\nWith [npm](https://npmjs.org/) installed, run\n\n```\n$ npm install microauth-token\n```\n\n## Usage\n\nWith a [`micro`](https://github.com/zeit/micro) project:\n\n```js\n// index.js\nconst auth = require('microauth-token')\n\nmodule.exports = auth('TOKEN')((req, res) =\u003e {\n  res.end('Authorized')\n})\n```\n\n```sh\n$ TOKEN=abc micro\n```\n\n```sh\n$ curl localhost:3000?TOKEN=abc # =\u003e '200 Authorized'\n$ curl localhost:3000?TOKEN=xyz # =\u003e '401 Unauthorized'\n```\n\n## License\n\nMIT\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxfi%2Fmicroauth-token","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxfi%2Fmicroauth-token","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxfi%2Fmicroauth-token/lists"}