Join Angular Projects

Asked

Viewed 84 times

0

I created several angular projects simulating faces of a system, ex: stock design, financial design and etc. And now I came up with a question, I was going to make a single login system that would verify who is the user and direct it to the project that has access. I wonder if there’s a proper way to do it? I thought about creating a new project, checking in and then creating components, and copying and placing from previous projects.

1 answer

0

The best way in this case is to work with JWT authentication. This authentication would not use recorded sessions and thus could be interoperable between applications:

  1. The login app validates the user and generates the authentication JWT with an expiration time, for security.
  2. Based on the user access rule, the login app would redirect to the industry app.
  3. The industry app, which is independent, would receive this JWT and validate it, being valid, would use this JWT as a key for all backend/API requests

Browser other questions tagged

You are not signed in. Login or sign up in order to post.