{"id":20375334,"url":"https://github.com/cba85/express-fake-token-auth-api","last_synced_at":"2026-04-16T05:04:36.149Z","repository":{"id":185438607,"uuid":"626982230","full_name":"cba85/express-fake-token-auth-api","owner":"cba85","description":"🥸 A fake Token Authentication API using Express.js (node).","archived":false,"fork":false,"pushed_at":"2023-04-12T14:54:32.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-11T21:44:27.542Z","etag":null,"topics":["api","express","fake","nodejs","token-based-authentication"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":false,"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/cba85.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,"publiccode":null,"codemeta":null}},"created_at":"2023-04-12T14:44:23.000Z","updated_at":"2023-04-12T14:55:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"fbea1361-3f60-43fa-a999-dbdcb41d6595","html_url":"https://github.com/cba85/express-fake-token-auth-api","commit_stats":null,"previous_names":["cba85/express-fake-token-auth-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cba85/express-fake-token-auth-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cba85%2Fexpress-fake-token-auth-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cba85%2Fexpress-fake-token-auth-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cba85%2Fexpress-fake-token-auth-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cba85%2Fexpress-fake-token-auth-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cba85","download_url":"https://codeload.github.com/cba85/express-fake-token-auth-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cba85%2Fexpress-fake-token-auth-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31872036,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"online","status_checked_at":"2026-04-16T02:00:06.042Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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":["api","express","fake","nodejs","token-based-authentication"],"created_at":"2024-11-15T01:29:57.108Z","updated_at":"2026-04-16T05:04:36.127Z","avatar_url":"https://github.com/cba85.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Express Fake Token Auth API\n\nA fake Token Authentication API using Express.js (node).\n\nThis API just check the format of parameters but don't check their values.\n\nIt means you can use any username, email, password and bearer token.\n\n## Install\n\n```sh\n$ npm install\n```\n\n## Usage\n\n```sh\n$ npm run dev\n```\n\n## Routes\n\n### Home\n\n```sh\nGET /\n```\n\n#### Responses\n\n| Status Code |\tDescription |\n| --- | --- |\n| 200 | OK |\n\nHTML\n\n### Login\n\n```sh\nPOST /login\n```\n\n#### Request Body\n\n| Parameter | Type     | Description                |\n| :-------- | :------- | :------------------------- |\n| `email`   | `string` | **Required**. **Valid email**. Email address    |\n| `password`| `string` | **Required**. **Min length: 8** Password |\n\n#### Responses\n\n| Status Code |\tDescription |\n| --- | --- |\n| 200 | OK |\n\nObject\n\n| Parameter | Type     | Description                |\n| :-------- | :------- | :------------------------- |\n| `id`   | `integer` | User ID    |\n| `username`   | `string` | Username    |\n| `email`| `string` | User email address |\n| `token` | `string` | Authentication token |\n\n#### Errors\n\n| Status Code |\tDescription |\n| --- | --- |\n| 401 | Unauthorized |\n| 422 |  Unprocessable Entity |\n\n### Register\n\n```sh\nPOST /register\n```\n\n#### Request Body\n\n| Parameter | Type     | Description                |\n| :-------- | :------- | :------------------------- |\n| `username`   | `string` | **Required**. Username    |\n| `email`   | `string` | **Required**. **Valid email**. Email address    |\n| `password`| `string` | **Required**. **Min length: 8** Password |\n\n#### Responses\n\n| Status Code |\tDescription |\n| --- | --- |\n| 201 | Created |\n\nObject\n\n| Parameter | Type     | Description                |\n| :-------- | :------- | :------------------------- |\n| `id`   | `integer` | User ID    |\n| `username`   | `string` | Username    |\n| `email`| `string` | User email address |\n| `token` | `string` | Authentication token |\n\n#### Errors\n\n| Status Code |\tDescription |\n| --- | --- |\n| 422 |  Unprocessable Entity |\n\n### Me\n\n```sh\nGET /me\n```\n\n#### Request headers\n\n| Parameter | Type     | Description                |\n| :-------- | :------- | :------------------------- |\n| `Authorization`   | `string` | **Required**. Bearer token    |\n\n#### Responses\n\n| Status Code |\tDescription |\n| --- | --- |\n| 200 | Ok |\n\nObject\n\n| Parameter | Type     | Description                |\n| :-------- | :------- | :------------------------- |\n| `id`   | `integer` | User ID    |\n| `username`   | `string` | Username    |\n| `email`| `string` | User email address |\n| `token` | `string` | Authentication token |\n\n#### Errors\n\n| Status Code |\tDescription |\n| --- | --- |\n| 401 |  Unauthorized |\n| 422 |  Unprocessable Entity |\n\n### Logout\n\n```sh\nPOST /logout\n```\n\n#### Request headers\n\n| Parameter | Type     | Description                |\n| :-------- | :------- | :------------------------- |\n| `Authorization`   | `string` | **Required**. Bearer token    |\n\n#### Responses\n\n| Status Code |\tDescription |\n| --- | --- |\n| 204 | No Content |\n\n#### Errors\n\n| Status Code |\tDescription |\n| --- | --- |\n| 401 |  Unauthorized |\n| 422 |  Unprocessable Entity |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcba85%2Fexpress-fake-token-auth-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcba85%2Fexpress-fake-token-auth-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcba85%2Fexpress-fake-token-auth-api/lists"}