{"id":25049342,"url":"https://github.com/gusdepaula/token-auth-and-management","last_synced_at":"2026-06-20T04:31:18.585Z","repository":{"id":37591843,"uuid":"503473808","full_name":"gusdepaula/token-auth-and-management","owner":"gusdepaula","description":"Curso Alura Next.js autenticação e gerenciamento de tokens","archived":false,"fork":false,"pushed_at":"2022-06-21T21:55:37.000Z","size":72,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-20T12:37:40.210Z","etag":null,"topics":["alura","authentication","management","nextjs","token"],"latest_commit_sha":null,"homepage":"","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/gusdepaula.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}},"created_at":"2022-06-14T18:20:27.000Z","updated_at":"2022-06-14T18:56:02.000Z","dependencies_parsed_at":"2022-09-08T22:23:52.194Z","dependency_job_id":null,"html_url":"https://github.com/gusdepaula/token-auth-and-management","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gusdepaula/token-auth-and-management","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gusdepaula%2Ftoken-auth-and-management","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gusdepaula%2Ftoken-auth-and-management/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gusdepaula%2Ftoken-auth-and-management/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gusdepaula%2Ftoken-auth-and-management/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gusdepaula","download_url":"https://codeload.github.com/gusdepaula/token-auth-and-management/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gusdepaula%2Ftoken-auth-and-management/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34557551,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-20T02:00:06.407Z","response_time":98,"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":["alura","authentication","management","nextjs","token"],"created_at":"2025-02-06T08:17:54.144Z","updated_at":"2026-06-20T04:31:18.565Z","avatar_url":"https://github.com/gusdepaula.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Access Token:\n\n- **Pra que serve?**\n\n  - Pegar qualquer tipo de informação do usuário\n  - Atualizar qualquer tipo de informação do usuário\n  - Inserir qualquer tipo de informação do usuário\n  - Deletar qualquer tipo de informação do usuário\n\n- **Duração**\n\n  - Dura pouco tempo(o minímo possível)\n\n- **Risco se ele vazar**\n\n  - Quanto maior o tempo de vida dele, maior o estrago que quem tiver o token pode fazer\n\n## Refresh Token:\n\n- **Pra que serve?**\n\n  - Literalmente, para não precisar pedir a senha e o usuário para gerar um novo access token\n\n- **Duração**\n\n  - Duração é longa\n  - O refresh a nível de backend está associado ao usuário de alguma forma\n\n- **Risco se ele vazar**\n\n  - O usuário novo pode gerar tokens INFINITOS(access token, refresh token)\n  - Precisa ter alguma forma de invalidar os refresh tokens\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgusdepaula%2Ftoken-auth-and-management","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgusdepaula%2Ftoken-auth-and-management","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgusdepaula%2Ftoken-auth-and-management/lists"}