API calls for validating user sessions

Are the following statements true?

  • image this counts as one API call
  • image this does not count as API call
  • image this counts as one API call

Thanks

Hello @Klaas_Klever,

  • image - if the user is already loaded it won’t make a request to the server

  • image - it will make a request to the server

  • image or image - if the user is not loaded and the LocalStorage doesn’t contains the userId it won’t make an API call

  • image - it makes an API call only there is user-token (in LocalStorage or in the current user token)

Regards,
Olha

Hi @olhadanylova ,
What does it mean “the user is loaded”? Does this mean, the local storage entry exists?

When the user logs in the first time the userId и userToken are stored in the Local Storage.
The entity of the successfully logged in user is stored in the browser memory (RAM).