{"id":14972283,"url":"https://github.com/bezkoder/angular-15-jwt-auth","last_synced_at":"2025-10-26T18:31:45.614Z","repository":{"id":101824088,"uuid":"578448644","full_name":"bezkoder/angular-15-jwt-auth","owner":"bezkoder","description":"Angular 15 JWT Authentication \u0026 Authorization with Web API and HttpOnly Cookie - Token Based Auth, Router, Forms, HttpClient, BootstrapBootstrap ","archived":false,"fork":false,"pushed_at":"2023-04-01T23:04:56.000Z","size":167,"stargazers_count":27,"open_issues_count":1,"forks_count":18,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-31T22:22:31.659Z","etag":null,"topics":["angular","angular-15","angular15","authentication","authorization","bootstrap","bootstrap-4","bootstrap4","httponly-cookie","json-web-token","jwt","jwt-auth","jwt-authentication","jwt-authorization","jwt-token","jwt-tokens","login","registration","token-authorization","token-based-authentication"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/bezkoder.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":"2022-12-15T04:36:29.000Z","updated_at":"2024-11-14T15:42:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"6de22ddf-1f9d-450e-8955-108b1b17810d","html_url":"https://github.com/bezkoder/angular-15-jwt-auth","commit_stats":{"total_commits":2,"total_committers":1,"mean_commits":2.0,"dds":0.0,"last_synced_commit":"719f679818aa5c182cdb4fd0a24536fcee797db8"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bezkoder%2Fangular-15-jwt-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bezkoder%2Fangular-15-jwt-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bezkoder%2Fangular-15-jwt-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bezkoder%2Fangular-15-jwt-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bezkoder","download_url":"https://codeload.github.com/bezkoder/angular-15-jwt-auth/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238386125,"owners_count":19463305,"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","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":["angular","angular-15","angular15","authentication","authorization","bootstrap","bootstrap-4","bootstrap4","httponly-cookie","json-web-token","jwt","jwt-auth","jwt-authentication","jwt-authorization","jwt-token","jwt-tokens","login","registration","token-authorization","token-based-authentication"],"created_at":"2024-09-24T13:46:40.493Z","updated_at":"2025-10-26T18:31:45.244Z","avatar_url":"https://github.com/bezkoder.png","language":"TypeScript","readme":"# Angular 15 JWT Authentication \u0026 Authorization example with Rest API\n\nBuild Angular 15 JWT Authentication \u0026 Authorization example with Rest Api, HttpOnly Cookie and JWT (including HttpInterceptor, Router \u0026 Form Validation).\n- JWT Authentication Flow for User Registration (Signup) \u0026 User Login\n- Project Structure with HttpInterceptor, Router\n- Way to implement HttpInterceptor\n- How to store JWT token in HttpOnly Cookie\n- Creating Login, Signup Components with Form Validation\n- Angular Components for accessing protected Resources\n- How to add a dynamic Navigation Bar to Angular App\n- Working with Browser Session Storage\n\n## Flow for User Registration and User Login\nFor JWT – Token based Authentication with Rest API, we’re gonna call 2 endpoints:\n- POST `api/auth/signup` for User Registration\n- POST `api/auth/signin` for User Login\n- POST `api/auth/signout` for User Logout\n\nYou can take a look at following flow to have an overview of Requests and Responses that Angular 15 JWT Authentication \u0026 Authorization Client will make or receive.\n\n![angular-15-jwt-authentication-authorization-flow](angular-15-jwt-authentication-authorization-flow.png)\n\n## Angular JWT App Diagram with Router and HttpInterceptor\n![angular-15-jwt-authentication](angular-15-jwt-authentication.png)\n\nFor more detail, please visit the tutorial:\n\u003e [Angular 15 JWT Authentication \u0026 Authorization with Web API example](https://www.bezkoder.com/angular-15-jwt-auth/)\n\n\u003e [Angular Logout when Token is expired](https://www.bezkoder.com/logout-when-token-expired-angular-15/)\n\n\u003e [Angular Refresh Token with Interceptor and JWT example](https://www.bezkoder.com/angular-15-refresh-token/)\n\n## With Spring Boot back-end\n\n\u003e [Angular 15 + Spring Boot: JWT Authentication and Authorization example](https://www.bezkoder.com/angular-15-spring-boot-jwt-auth/)\n\n## With Node.js Express back-end\n\n\u003e [Angular 15 + Node.js Express: JWT Authentication and Authorization example](https://www.bezkoder.com/node-js-angular-15-jwt-auth/)\n\nRun `ng serve --port 8081` for a dev server. Navigate to `http://localhost:8081/`.\n\n## More practice\n\u003e [Angular 15 CRUD example with Rest API](https://www.bezkoder.com/angular-15-crud-example/)\n\n\u003e [Angular 15 Pagination example](https://www.bezkoder.com/angular-15-pagination-ngx/)\n\n\u003e [Angular 15 File upload example with Progress bar](https://www.bezkoder.com/angular-15-file-upload/)\n\n\u003e [Angular 15 Form Validation example](https://www.bezkoder.com/angular-15-form-validation/)\n\nFullstack with Node:\n\u003e [Angular 15 + Node Express + MySQL example](https://www.bezkoder.com/angular-15-node-js-express-mysql/)\n\n\u003e [Angular 15 + Node Express + PostgreSQL example](https://www.bezkoder.com/angular-15-node-js-express-postgresql/)\n\n\u003e [Angular 15 + Node Express + MongoDB example](https://www.bezkoder.com/angular-15-node-js-express-mongodb/)\n\n\u003e [Angular 15 + Node Express: File upload example](https://www.bezkoder.com/angular-15-node-express-file-upload/)\n\n\u003e [Angular 15 + Node.js Express: JWT Authentication and Authorization example](https://www.bezkoder.com/node-js-angular-15-jwt-auth/)\n\nFullstack with Spring Boot:\n\u003e [Angular 15 + Spring Boot example](https://www.bezkoder.com/spring-boot-angular-15-crud/)\n\n\u003e [Angular 15 + Spring Boot + MySQL example](https://www.bezkoder.com/spring-boot-angular-15-mysql/)\n\n\u003e [Angular 15 + Spring Boot + PostgreSQL example](https://www.bezkoder.com/spring-boot-angular-15-postgresql/)\n\n\u003e [Angular 15 + Spring Boot + MongoDB example](https://www.bezkoder.com/spring-boot-angular-15-mongodb/)\n\n\u003e [Angular 15 + Spring Boot: File upload example](https://www.bezkoder.com/angular-15-spring-boot-file-upload/)\n\n\u003e [Angular 15 + Spring Boot: JWT Authentication and Authorization example](https://www.bezkoder.com/angular-15-spring-boot-jwt-auth/)\n\nFullstack with Django:\n\u003e [Angular + Django example](https://www.bezkoder.com/django-angular-13-crud-rest-framework/)\n\n\u003e [Angular + Django + MySQL](https://www.bezkoder.com/django-angular-mysql/)\n\n\u003e [Angular + Django + PostgreSQL](https://www.bezkoder.com/django-angular-postgresql/)\n\n\u003e [Angular + Django + MongoDB](https://www.bezkoder.com/django-angular-mongodb/)\n\nServerless with Firebase:\n\u003e [Angular 15 Firebase CRUD with Realtime DataBase](https://www.bezkoder.com/angular-15-firebase-crud/)\n\n\u003e [Angular 15 Firestore CRUD example](https://www.bezkoder.com/angular-15-firestore-crud/)\n\n\u003e [Angular 15 Firebase Storage: File Upload/Display/Delete example](https://www.bezkoder.com/angular-15-firebase-storage/)\n\nIntegration (run back-end \u0026 front-end on same server/port)\n\u003e [How to integrate Angular with Node Restful Services](https://www.bezkoder.com/integrate-angular-12-node-js/)\n\n\u003e [How to Integrate Angular with Spring Boot Rest API](https://www.bezkoder.com/integrate-angular-12-spring-boot/)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbezkoder%2Fangular-15-jwt-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbezkoder%2Fangular-15-jwt-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbezkoder%2Fangular-15-jwt-auth/lists"}