angular2-jwt
angular-14-jwt-auth
Our great sponsors
angular2-jwt | angular-14-jwt-auth | |
---|---|---|
1 | 1 | |
2,629 | 30 | |
0.2% | - | |
5.5 | 0.0 | |
29 days ago | 10 months ago | |
TypeScript | TypeScript | |
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.
angular-14-jwt-auth
-
Angular - Logout when Token is expired
You can find the complete source code for this tutorial on Github.
What are some alternatives?
next-auth - Authentication for the Web.
starlite-jwt - JWT Auth toolkit for Starlite
ngx-permissions - Permission and roles based access control for your angular(angular 2,4,5,6,7,9+) applications(AOT, lazy modules compatible
PHP-Auth - Authentication for PHP. Simple, lightweight and secure.
google-auth-library-nodejs - 🔑 Google Auth Library for Node.js
json-server-auth - Authentication & Authorization flow for JSON Server
Angular-Full-Stack - Angular Full Stack project built using Angular, Express, Mongoose and Node. Whole stack in TypeScript.
nuxt-iam
auth0-angular - Auth0 SDK for Angular Single Page Applications
react-auth-kit - Powerful Auth Management library for ReactJs-based applications
jwt-decode - Decode JWT tokens; useful for browser applications.
JwtAuthDemo - ASP.NET Core + Angular JWT auth demo; integration tests; login, logout, refresh token, impersonation, authentication, authorization; run on Docker Compose.