{"id":28485181,"url":"https://github.com/judahh/mauth","last_synced_at":"2026-03-01T18:31:43.619Z","repository":{"id":36958953,"uuid":"386917207","full_name":"Judahh/mauth","owner":"Judahh","description":"Authentication and Authorization Middleware","archived":false,"fork":false,"pushed_at":"2025-06-13T09:31:59.000Z","size":1676,"stargazers_count":0,"open_issues_count":41,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-08T05:06:07.869Z","etag":null,"topics":["auth","authentication","authorization","back-end","backend","javascript","middleware","midware","nodejs","permission","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Judahh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":["Judahh"],"patreon":"judahh"}},"created_at":"2021-07-17T11:16:04.000Z","updated_at":"2021-12-22T16:59:21.000Z","dependencies_parsed_at":"2023-02-14T05:47:15.150Z","dependency_job_id":"1083d6e3-49c5-4d6f-8833-fa3054a25dda","html_url":"https://github.com/Judahh/mauth","commit_stats":{"total_commits":58,"total_committers":3,"mean_commits":"19.333333333333332","dds":"0.18965517241379315","last_synced_commit":"fc3893c8dcd21e5358e23f83159b04f4b53074f1"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Judahh/mauth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Judahh%2Fmauth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Judahh%2Fmauth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Judahh%2Fmauth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Judahh%2Fmauth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Judahh","download_url":"https://codeload.github.com/Judahh/mauth/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Judahh%2Fmauth/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266367849,"owners_count":23918657,"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","status":"online","status_checked_at":"2025-07-21T11:47:31.412Z","response_time":64,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"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":["auth","authentication","authorization","back-end","backend","javascript","middleware","midware","nodejs","permission","typescript"],"created_at":"2025-06-07T23:41:24.626Z","updated_at":"2026-03-01T18:31:43.580Z","avatar_url":"https://github.com/Judahh.png","language":"TypeScript","funding_links":["https://github.com/sponsors/Judahh","https://patreon.com/judahh"],"categories":[],"sub_categories":[],"readme":"# MAuth\n\n![Publish](https://github.com/Judahh/mauth/workflows/Publish/badge.svg)\n[![npm version](https://badge.fury.io/js/%40midware%2Fmauth.svg)](https://badge.fury.io/js/%40midware%2Fmauth)\n[![npm downloads](https://img.shields.io/npm/dt/%40midware%2Fmauth.svg)](https://img.shields.io/npm/dt/%40midware%2Fmauth.svg)\n\nAuthentication and Authorization Middleware\n\n## Installation\n\nThis is a [Node.js](https://nodejs.org/en/) module available through the\n[npm registry](https://www.npmjs.com/).\n\nBefore installing,\n[download and install Node.js](https://nodejs.org/en/download/).\n\nIf this is a brand new project, make sure to create a `package.json` first with\nthe [`npm init` command](https://docs.npmjs.com/creating-a-package-json-file) or\n[`yarn init` command](https://classic.yarnpkg.com/en/docs/cli/init/).\n\nInstallation is done using the\n[`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally)\nor [`yarn add` command](https://classic.yarnpkg.com/en/docs/cli/add):\n\n```bash\n$ npm install @midware/mauth\n```\n\nor\n\n```bash\n$ yarn add @midware/mauth\n```\n\n## Features\n\n- Ready to use authorization middleware\n- Ready to use authentication middleware\n- Simple implementation\n\n## Tests\n\nTo run the test suite, first install the dependencies, then run `npm test`:\n\n```bash\n$ npm install\n$ npm test\n```\n\nor\n\n```bash\n$ yarn\n$ yarn test\n```\n\n## Environment Variables:\n\nGOOGLE_CLIENT_ID = Google Client Id\nAUTH_HOST = Auth host URL to get keys\nJWT_PRIVATE_KEY = RSA Private Key to generate JWT\nJWT_PUBLIC_KEY = RSA Public Key to get JWT\nSERVICE_NAME = Credential id to connect to Auth host\nSERVICE_KEY = Credential KEY to connect to Auth host\nSERVICE_NAME = Project name\nINSTANCE = Project instance name\n\n## People\n\nThe original author of MAuth is [Judah Lima](https://github.com/Judahh)\n\n[List of all contributors](https://github.com/Judahh/mauth/graphs/contributors)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjudahh%2Fmauth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjudahh%2Fmauth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjudahh%2Fmauth/lists"}