angular2-jwt
auth
Our great sponsors
angular2-jwt | auth | |
---|---|---|
1 | 2 | |
2,629 | 17 | |
0.2% | - | |
5.5 | 1.4 | |
28 days ago | about 1 year ago | |
TypeScript | TypeScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
angular2-jwt
-
Guard for Role-based access control
The way I did it was I wrote a core services library that all of our angular applications will use so they can all easily get any updates. When the service gets loaded, it checks for the presence of the jwt (whether in a cookie or local storage), and validates it. If it's valid, I use the @auth0/angular-jwt package to do this, and also decode it, it grabs the list of roles from the token and updates the ngx-permissions service. This service is an entry point so the application doesn't load until this check happens.
auth
-
What do you think about this Pattern?
What's the good solution? Making the deps tuple typesafe. I actually implemented it in one of my projects: https://github.com/AlexAegis/auth/blob/e3c536d2524babb56f375c104874f7cfdab6534d/libs/jwt/src/lib/model/typed-providers.interface.ts
-
Example of "good" Angular on github
This one doesn't have that much templating in it because it's a library, but you might find something useful there: https://github.com/AlexAegis/auth
What are some alternatives?
next-auth - Authentication for the Web.
axios-auth-refresh - Library that helps you implement automatic refresh of authorization via axios interceptors. You can easily intercept the original request when it fails, refresh the authorization and continue with the original request, without user even noticing.
ngx-permissions - Permission and roles based access control for your angular(angular 2,4,5,6,7,9+) applications(AOT, lazy modules compatible
angular-ngrx-nx-realworld-example-app - Real world application built with Angular 17, NgRx 17, nrwl/nx 17
google-auth-library-nodejs - 🔑 Google Auth Library for Node.js
web - The website vault (vault.bitwarden.com).
Angular-Full-Stack - Angular Full Stack project built using Angular, Express, Mongoose and Node. Whole stack in TypeScript.
djwt - Create and verify JSON Web Tokens (JWT) with Deno or the browser.
auth0-angular - Auth0 SDK for Angular Single Page Applications
ever - Ever® Demand™ - Open Commerce Platform
jwt-decode - Decode JWT tokens; useful for browser applications.
Angular - Deliver web apps with confidence 🚀