Stores, loads and removes user's information (email, name, token and role) from localStorage
- Source:
Methods
(static) loadUser()
Loads user's information from localStorage
- Source:
(static) logoutUser()
Removes user's information from localStorage. Used for loggin out user
- Source:
(static) saveUser(user)
Stores user's information to localStorage
Parameters:
Name | Type | Description |
---|---|---|
user |
Object | user information containing (email, name, token and role) |
- Source: