{"id":22379602,"url":"https://github.com/luispagarcia/jwt-api","last_synced_at":"2025-09-16T15:05:37.499Z","repository":{"id":124196443,"uuid":"153712972","full_name":"LuisPaGarcia/jwt-api","owner":"LuisPaGarcia","description":"Ejemplo suuuuuuper pato de como usar JWT","archived":false,"fork":false,"pushed_at":"2018-10-19T02:15:07.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-09-07T01:02:24.881Z","etag":null,"topics":["example","jwt","node","simple"],"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/LuisPaGarcia.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":"2018-10-19T02:05:08.000Z","updated_at":"2018-10-19T02:15:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"e1e10a5b-e690-41c5-9218-a8555d3be5a7","html_url":"https://github.com/LuisPaGarcia/jwt-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/LuisPaGarcia/jwt-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuisPaGarcia%2Fjwt-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuisPaGarcia%2Fjwt-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuisPaGarcia%2Fjwt-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuisPaGarcia%2Fjwt-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LuisPaGarcia","download_url":"https://codeload.github.com/LuisPaGarcia/jwt-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuisPaGarcia%2Fjwt-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275439513,"owners_count":25465041,"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-09-16T02:00:10.229Z","response_time":65,"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":["example","jwt","node","simple"],"created_at":"2024-12-04T23:10:40.420Z","updated_at":"2025-09-16T15:05:37.435Z","avatar_url":"https://github.com/LuisPaGarcia.png","language":"JavaScript","readme":"# jwt-api\n\n## Instala las dependencias\n```shell\n$ npm i\n```\n\no\n\n```shell\n$ yarn \n```\n\n## Ejecuta con 2 variables de ambiente, PORT y secret\n\n```shell\n$ PORT=3000 secret=secretohehe node index.js\n```\n\n## Genera JWT\n\n- Entra a localhost:3000/token y obtén tu token\n\n## Utiliza el JWT\n\n- Entra a localhost:3000/api\n- No podrás entrar\n- Ahora entra a localhost:3000/api?token=EL_TOKEN_\n\n\nListo 💯","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluispagarcia%2Fjwt-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluispagarcia%2Fjwt-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluispagarcia%2Fjwt-api/lists"}