{"id":26179279,"url":"https://github.com/bezkoder/mean-stack-authentication-authorization","last_synced_at":"2026-02-25T20:32:08.154Z","repository":{"id":43786342,"uuid":"500674895","full_name":"bezkoder/mean-stack-authentication-authorization","owner":"bezkoder","description":"MEAN stack Authentication and Authorization example - Registration, Login, Logout with JWT","archived":false,"fork":false,"pushed_at":"2024-02-04T09:33:30.000Z","size":621,"stargazers_count":34,"open_issues_count":0,"forks_count":23,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-14T22:37:01.817Z","etag":null,"topics":["angular","angular13","authentication","authorization","express","expressjs","jwt","jwt-auth","jwt-authentication","jwt-token","mean-stack","meanstack","mongodb","mongoose","node-js","nodejs"],"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,"zenodo":null}},"created_at":"2022-06-07T03:24:08.000Z","updated_at":"2025-01-10T06:08:48.000Z","dependencies_parsed_at":"2025-04-14T22:42:12.278Z","dependency_job_id":null,"html_url":"https://github.com/bezkoder/mean-stack-authentication-authorization","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bezkoder/mean-stack-authentication-authorization","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bezkoder%2Fmean-stack-authentication-authorization","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bezkoder%2Fmean-stack-authentication-authorization/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bezkoder%2Fmean-stack-authentication-authorization/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bezkoder%2Fmean-stack-authentication-authorization/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bezkoder","download_url":"https://codeload.github.com/bezkoder/mean-stack-authentication-authorization/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bezkoder%2Fmean-stack-authentication-authorization/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29838070,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-25T19:08:47.527Z","status":"ssl_error","status_checked_at":"2026-02-25T18:59:04.705Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["angular","angular13","authentication","authorization","express","expressjs","jwt","jwt-auth","jwt-authentication","jwt-token","mean-stack","meanstack","mongodb","mongoose","node-js","nodejs"],"created_at":"2025-03-11T21:49:28.827Z","updated_at":"2026-02-25T20:32:08.120Z","avatar_url":"https://github.com/bezkoder.png","language":"TypeScript","readme":"# MEAN stack Authentication and Authorization example\n\nBuild MEAN stack JWT Authentication \u0026 Authorization example with HttpOnly Cookie and JWT.\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:\n\n![mean-stack-authentication-authorization-flow](mean-stack-authentication-authorization-flow.png)\n\nFor more detail, please visit the tutorial:\n\u003e [MEAN stack Authentication \u0026 Authorization with Angular 13](https://www.bezkoder.com/mean-stack-auth-angular-13/)\n\n\u003e [MEAN stack Authentication \u0026 Authorization with Angular 14](https://www.bezkoder.com/mean-stack-auth-angular-14/)\n\n\u003e [MEAN stack Authentication \u0026 Authorization with Angular 15](https://www.bezkoder.com/mean-stack-auth-angular-15/)\n\n\u003e [MEAN stack Authentication \u0026 Authorization with Angular 16](https://www.bezkoder.com/mean-stack-auth-angular-16/)\n\n\u003e [MEAN stack Authentication \u0026 Authorization with Angular 17](https://www.bezkoder.com/mean-stack-auth-angular-17/)\n\n## Run\n### Node.js Server\nRun `node server.js` for a dev server exporting API at http://localhost:8080/.\n\n### Angular Client\nRun `ng serve --port 8081`. Navigate to `http://localhost:8081/`.\n\n## More practice\n\nFullstack with Node:\n\n\u003e [Angular 13 + Node Express + MongoDB example](https://www.bezkoder.com/mean-stack-crud-example-angular-13/)\n\n\u003e [Angular 14 + Node Express + MongoDB example](https://www.bezkoder.com/mean-stack-crud-example-angular-14/)\n\n\u003e [Angular 15 + Node Express + MongoDB example](https://www.bezkoder.com/angular-15-node-js-express-mongodb/)\n\n\u003e [Angular 16 + Node Express + MongoDB example](https://www.bezkoder.com/angular-16-node-js-express-mongodb/)\n\n\u003e [Angular 17 + Node Express + MongoDB example](https://www.bezkoder.com/angular-17-node-js-express-mongodb/)\n\n\u003e [Angular 13 + Node Express: File upload example](https://www.bezkoder.com/angular-13-node-express-file-upload/)\n\n\u003e [Angular 14 + Node Express: File upload example](https://www.bezkoder.com/angular-14-node-express-file-upload/)\n\n\u003e [Angular 15 + Node Express: File upload example](https://www.bezkoder.com/angular-15-node-express-file-upload/)\n\n\u003e [Angular 16 + Node Express: File upload example](https://www.bezkoder.com/angular-16-node-express-file-upload/)\n\n\u003e [Angular 17 + Node Express: File upload example](https://www.bezkoder.com/angular-17-node-express-file-upload/)\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","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbezkoder%2Fmean-stack-authentication-authorization","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbezkoder%2Fmean-stack-authentication-authorization","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbezkoder%2Fmean-stack-authentication-authorization/lists"}