{"id":32491429,"url":"https://github.com/eperezcosano/auth-server-template","last_synced_at":"2026-04-08T16:32:33.820Z","repository":{"id":46281644,"uuid":"422570836","full_name":"eperezcosano/auth-server-template","owner":"eperezcosano","description":"A basic template for a server token authorization","archived":false,"fork":false,"pushed_at":"2023-07-18T19:29:56.000Z","size":97,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2023-07-18T20:36:30.338Z","etag":null,"topics":["express","jwt","jwt-auth","jwt-server","mongodb","mongoose","nodejs"],"latest_commit_sha":null,"homepage":"","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/eperezcosano.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-10-29T12:40:41.000Z","updated_at":"2023-07-18T20:36:30.339Z","dependencies_parsed_at":"2023-02-05T20:30:35.954Z","dependency_job_id":null,"html_url":"https://github.com/eperezcosano/auth-server-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/eperezcosano/auth-server-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eperezcosano%2Fauth-server-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eperezcosano%2Fauth-server-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eperezcosano%2Fauth-server-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eperezcosano%2Fauth-server-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eperezcosano","download_url":"https://codeload.github.com/eperezcosano/auth-server-template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eperezcosano%2Fauth-server-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31564900,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["express","jwt","jwt-auth","jwt-server","mongodb","mongoose","nodejs"],"created_at":"2025-10-27T10:00:33.047Z","updated_at":"2026-04-08T16:32:33.814Z","avatar_url":"https://github.com/eperezcosano.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# API Server JWT Auth\nA basic template for a server token authorization\n\n## Models\n\n### User\n\n| Parameter | Type   | Description   |\n|:----------|:-------|:--------------|\n| email     | string | User e-mail   |\n| pass      | string | User password |\n\n## Routes\n\n| Method | Auth | Path             | Description         | Body JSON                                                         |\n|:------:|------|------------------|---------------------|-------------------------------------------------------------------|\n|  GET   |      | /                | \"Hello World\"       |                                                                   |\n|  POST  |      | /register        | Create a new user   | [User](https://github.com/eperezcosano/auth-server-template#user) |\n|  POST  |      | /login           | Generates a new JWT | [User](https://github.com/eperezcosano/auth-server-template#user) |\n|  GET   | JWT  | /validate        | Validate JWT        |                                                                   |\n|  GET   | JWT  | /dashboard/      | Protected route     |                                                                   |\n|  GET   | JWT  | /dashboard/users | Get all users       |                                                                   |\n\n\n## Installation\n\nInstall dependencies:\n\n```\nnpm i\n```\n\nAdd .env file:\n\n```\nMONGO_URI=\u003cmongo uri string\u003e\nPORT=\u003cserver port listening\u003e\nJW_SECRET=\u003cjson web token secret\u003e\nJW_EXPIRATION=\u003cin seconds\u003e\n```\n\nRun node project:\n\n```\nnode index.js\n```\n\n## Technologies\n\n- node.js\n- express\n- mongoose\n- jwt\n\n## Author Info\n\nIzan Pérez Cosano (https://github.com/eperezcosano)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feperezcosano%2Fauth-server-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feperezcosano%2Fauth-server-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feperezcosano%2Fauth-server-template/lists"}