{"id":20796624,"url":"https://github.com/gotocva/nila-auth","last_synced_at":"2025-10-03T17:09:42.726Z","repository":{"id":230153588,"uuid":"778630912","full_name":"gotocva/nila-auth","owner":"gotocva","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-28T04:54:43.000Z","size":3844,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-17T02:21:17.039Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gotocva.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":"2024-03-28T04:50:30.000Z","updated_at":"2024-03-28T07:21:43.000Z","dependencies_parsed_at":"2024-03-28T05:51:45.989Z","dependency_job_id":null,"html_url":"https://github.com/gotocva/nila-auth","commit_stats":null,"previous_names":["gotocva/nila-auth"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gotocva/nila-auth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gotocva%2Fnila-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gotocva%2Fnila-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gotocva%2Fnila-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gotocva%2Fnila-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gotocva","download_url":"https://codeload.github.com/gotocva/nila-auth/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gotocva%2Fnila-auth/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261789274,"owners_count":23209775,"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-17T16:28:24.434Z","updated_at":"2025-10-03T17:09:37.664Z","avatar_url":"https://github.com/gotocva.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"### NilaAuth \n\n\nThis is a simple NilaAuth code snippet for setting up authentication using Express.js. It utilizes MongoDB for database storage and JSON Web Tokens (JWT) for authentication.\n\n### Prerequisites\n- Node.js installed on your machine\n- MongoDB installed and running locally\n- Basic nodejs project \n\n### Installation\n```\ngit clone https://github.com/gotocva/nila-auth\n```\n\n### Usage\n1. In your project, import `express` and the authentication middleware function `auth` from `nila-auth`:\n\n```javascript\nconst express = require('express');\nconst { auth } = require('nila-auth');\nconst app = express();\n\nconst authOptions = {\n    name: 'siva', \n    MONGODB_URL: process.env.MONGODB_URL, \n    JWT_SECRET: process.env.JWT_SECRET \n}\n\nauth(app, authOptions);\n\napp.listen(3000, () =\u003e {\n    console.log('Application running on port 3000');\n});\n\n```\n\n\n### API details\n\n#### TODO : Once the auth connected to your project by default it has some api's will update the API documentation soon.\n\n### License\nThis code is provided under the [MIT License](https://opensource.org/licenses/MIT). Feel free to use it and modify it as needed.\n\n### Author\nThis NilaAuth was created by Siva Bharathy.\n\n### Acknowledgments\nSpecial thanks to the developers and contributors of Express.js and MongoDB for their amazing work.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgotocva%2Fnila-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgotocva%2Fnila-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgotocva%2Fnila-auth/lists"}