/auth-jwt

Primary LanguageJavaScript

API Integration and User Data Handling: RESTful API Integration:

  1. Select a public or demo API for user data (e.g., a user profile API).
  2. Integrate the API into the SPA created by you in first task.
  3. Display relevant user data on the UI.
Asynchronous Programming and Authorization:
  1. Explore asynchronous programming concepts.
  2. Use promises, async/await to manage asynchronous tasks, especially when interacting with the user data API.
  3. Implement user authentication using a third-party authentication service (OAuth or a service of your choice).
  4. Integrate the authentication flow into the SPA.
Role-Based Authorization:
  1. Define different roles (e.g., user and admin)..
  2. Use the roles to implement authorization rules on the client side. For example, restrict access to certain sections based on the user’s role.
Additional Authorization Measures:
  1. Implement additional authorization measures, such as token-based authentication or using JSON Web Tokens (JWT).