{"id":25525010,"url":"https://github.com/yelm-212/jwt-login-client","last_synced_at":"2026-05-18T15:33:12.376Z","repository":{"id":276067389,"uuid":"927585924","full_name":"yelm-212/jwt-login-client","owner":"yelm-212","description":"JWT(Access Token, Refresh Token) login \u0026 logout","archived":false,"fork":false,"pushed_at":"2025-02-12T08:13:04.000Z","size":66,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-21T19:16:32.384Z","etag":null,"topics":["axios","element-plus","jwt","pinia","typescript","vite","vue-router","vue3"],"latest_commit_sha":null,"homepage":"","language":"Vue","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/yelm-212.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,"zenodo":null}},"created_at":"2025-02-05T07:49:47.000Z","updated_at":"2025-02-12T08:13:07.000Z","dependencies_parsed_at":"2025-02-06T05:26:47.778Z","dependency_job_id":"55045007-4617-4942-bdc3-6c1345e9ac6d","html_url":"https://github.com/yelm-212/jwt-login-client","commit_stats":null,"previous_names":["yelm-212/jwt-login-client"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yelm-212/jwt-login-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yelm-212%2Fjwt-login-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yelm-212%2Fjwt-login-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yelm-212%2Fjwt-login-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yelm-212%2Fjwt-login-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yelm-212","download_url":"https://codeload.github.com/yelm-212/jwt-login-client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yelm-212%2Fjwt-login-client/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267253293,"owners_count":24060136,"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-07-26T02:00:08.937Z","response_time":62,"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":["axios","element-plus","jwt","pinia","typescript","vite","vue-router","vue3"],"created_at":"2025-02-19T20:17:16.413Z","updated_at":"2026-05-18T15:33:07.353Z","avatar_url":"https://github.com/yelm-212.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JWT Login Client\n\nThis is a Vue.js 3 client application built to test and demonstrate [Spring Security + JWT login \u0026 logout](https://github.com/yelm-212/spring-jwt-login-logout) functionality.\n\n## Features\n\n- User Authentication (Login/Logout)\n- User Registration\n- JWT Token Management\n    - Token Storage\n    - Token Reissue\n    - Automatic Token Header Injection\n- Protected Route Access\n    - Regular User Endpoint Test (`/hello`)\n    - Admin Endpoint Test (`/admin`)\n- Responsive UI with Element Plus\n\n## Tech Stack\n\n- Vue 3\n- TypeScript\n- [Element Plus](https://element-plus.org/) - UI Components\n- Vue Router - Navigation\n- Pinia - State Management\n- Axios - HTTP Client\n- Vite - Build Tool\n\n## Project Structure\n\n```\nsrc/\n├── assets/         # Static assets\n├── components/     # Reusable components\n├── router/         # Route configurations\n├── stores/         # Pinia stores (auth)\n├── types/          # TypeScript type definitions\n└── views/          # Page components\n    ├── LoginView.vue\n    ├── SignupView.vue\n    └── DashboardView.vue\n```\n\n## State Management\n\nThe application uses Pinia for state management with the following stores:\n\n- `auth`: Manages authentication state\n    - JWT token storage\n    - Login/Logout actions\n    - Token reissue functionality\n\n## API Integration\n\nThe application communicates with a Spring Boot backend running on `localhost:8080`:\n\n### API Endpoints\n\n- **POST** /api/login    # User authentication\n- **POST** /api/join     # User registration\n- **POST** /api/logout   # User logout\n- **POST** /api/reissue  # Token reissue\n- **GET**  /api/hello    # Protected user endpoint\n- **GET**  /api/admin    # Protected admin endpoint\n\n## Project Setup\n\n### Prerequisites\n\n- Node.js 16+\n- npm or yarn\n- Running backend server ([spring-jwt-login-logout](https://github.com/yelm-212/spring-jwt-login-logout))\n\n### Installation\n\n```sh\nnpm install\n```\n\n### Development\n\n```sh\nnpm run dev\n```\n\nThe application will start on `http://localhost:8888`\n\n### Production Build\n\n```sh\nnpm run build\n```\n\n### Linting\n\n```sh\nnpm run lint\n```\n\n## Environment Configuration\n\nCreate `.env` file in project root:\n\n```env\nVITE_API_URL=http://localhost:8080\n```\n\n## Security Considerations\n\n- JWT tokens are stored in localStorage\n- All protected API calls include Authorization header\n- CORS is handled via Vite proxy configuration\n\n## Contributing\n\n1. Fork the repository\n2. Create your feature branch: `git checkout -b feature/my-feature`\n3. Commit your changes: `git commit -am 'Add my feature'`\n4. Push to the branch: `git push origin feature/my-feature`\n5. Submit a pull request\n\n## Related Projects\n\n- [Spring Security + JWT Login Backend](https://github.com/yelm-212/spring-jwt-login-logout)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyelm-212%2Fjwt-login-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyelm-212%2Fjwt-login-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyelm-212%2Fjwt-login-client/lists"}