2025-03-17 User Detail: Difference between revisions

From Izara Wiki
Jump to navigation Jump to search
(Created page with "=Concept=")
 
No edit summary
Line 1: Line 1:
=Concept=
=Concept=
*check if login by get access_token from local_storage
*querry userId from backend if login and set it in local_storage
*use userId to querry user_detail
*Must to set Uset-detal component as parent of menu-output
=Why user-detail have to set as parent of menu-output=
*Menu-output it always mount on web page every single page will see menu-output.
*After login menu-output will check login and decide which component should output between login component and not login component by check user detail had already query user-detail or not.

Revision as of 08:11, 17 April 2025

Concept

  • check if login by get access_token from local_storage
  • querry userId from backend if login and set it in local_storage
  • use userId to querry user_detail
  • Must to set Uset-detal component as parent of menu-output

Why user-detail have to set as parent of menu-output

  • Menu-output it always mount on web page every single page will see menu-output.
  • After login menu-output will check login and decide which component should output between login component and not login component by check user detail had already query user-detail or not.