Skip to content

Login

Overview

Different types of logins are available which provides different access accordingly:

This page explains about the various logins and accesses.

Route: /login

Features

  • Displays all the accesses to choose from and login.
  • Shows a list of schools assigned to a particular login.

Components

  1. SchoolProfilesList: Displays the list of accesses in the school.
    • Location: ./SchoolProfilesList.svelte

API Calls

  1. POST - /api/v1/users/login, generates tokens.
  2. GET - /api/v1/users/profiles, fetches the profiles data.
  3. GET - /api/v1/library/accesses, fetches the accesses information.
  4. GET - /api/v1/schools/me, school information.
  5. GET - /api/v1/school/accesses, school accesses information.
  6. GET - /api/v1/users/${userId}, fetches the user details.

Discussion

  1. Accepts the login details and generates token using the API call 1.
  2. Fetches the profiles data using the API call 2.
  3. Fetches the profiles data using the API call 3.
  4. Fetches the schools info using the API call 4.
  5. Fetches the school accesses information using the API call 5.
  6. Fetches the user details uing the API call 6.