{"id":25488181,"url":"https://github.com/chisa-dev/nodejs-auth-api","last_synced_at":"2025-11-08T06:30:31.067Z","repository":{"id":218345653,"uuid":"746186974","full_name":"chisa-dev/nodejs-auth-api","owner":"chisa-dev","description":null,"archived":false,"fork":false,"pushed_at":"2024-01-21T10:47:10.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-10T22:37:00.021Z","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/chisa-dev.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}},"created_at":"2024-01-21T10:31:56.000Z","updated_at":"2024-01-21T10:32:47.000Z","dependencies_parsed_at":"2024-01-21T11:47:57.398Z","dependency_job_id":null,"html_url":"https://github.com/chisa-dev/nodejs-auth-api","commit_stats":null,"previous_names":["gemechis-elias/nodejs-auth-api","chisa-dev/nodejs-auth-api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chisa-dev%2Fnodejs-auth-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chisa-dev%2Fnodejs-auth-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chisa-dev%2Fnodejs-auth-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chisa-dev%2Fnodejs-auth-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chisa-dev","download_url":"https://codeload.github.com/chisa-dev/nodejs-auth-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239550319,"owners_count":19657540,"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":"2025-02-18T20:50:04.712Z","updated_at":"2025-11-08T06:30:31.006Z","avatar_url":"https://github.com/chisa-dev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# basic-nodejs-auth-api\nThis is a basic authentication API using [express](https://github.com/expressjs/express) and [nedb-promises](https://github.com/bajankristof/nedb-promises).\n\n## Table of Contents\n  - [Usage](#usage)\n  - [Authentication](#authentication)\n  - [Default Account](#default-account)\n  - [Routes](#routes)\n    - [Signup](#signup)\n    - [Signin](#signin)\n    - [Get your user](#get-your-user)\n\n## Usage\n```bash\n$ git clone https://github.com/CodingWithNuke/basic-nodejs-auth-api.git \u003cname\u003e\n$ cd \u003cname\u003e\n$ npm install\n$ npm run dev\n```\n\n## Authentication\nTo authenticate, make a request to the signin route, this will return a token. This token is a Bearer token, your authentication header should be like this `Bearer [token here]`.\n\n## Default Account\nThis API comes with a default user account. The login credentials for this account are:  \n**Username**: `admin`  \n**Password**: `admin`  \n\n\u003e If you wish to disable the default account, head over to [`src/database/index.js`](src/database/index.js) and remove the onload function.\n\n## Routes\n\n### Signup\n**URL**: `/auth/signup`  \n**Method**: `POST`  \n**Auth required**: No  \n**Data example**  \n```json\n{\n  \"username\": \"admin\",\n  \"password\": \"admin\"\n}\n```\n---\n### Signin\n**URL**: `/auth/signin`  \n**Method**: `POST`  \n**Auth required**: No  \n**Data example**  \n```json\n{\n  \"username\": \"admin\",\n  \"password\": \"admin\"\n}\n```\n---\n### Get your user\n**URL**: `/users/me`  \n**Method**: `GET`  \n**Auth required**: Yes  ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchisa-dev%2Fnodejs-auth-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchisa-dev%2Fnodejs-auth-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchisa-dev%2Fnodejs-auth-api/lists"}