Question - Explain Angular Authentication and Authorization.
Answer -
The user login credentials are passed to an authenticated API, which is present on the server. Post-server-side validation of the credentials, a JWT (JSON Web Token) is returned. The JWT has information or attributes regarding the current user. The user is then identified with the given JWT. This is called authentication.
Post logging in successfully, different users have different levels of access. While some may access everything, access for others might be restricted to only some resources. The level of access is authorization.