Authentication Singleton
object AuthenticationSingleton
Singleton class responsible for managing user authentication state.
Properties
Functions
Link copied to clipboard
Logs out the user by setting isUserAuthenticated to false and removing the token from encrypted preferences.
Link copied to clipboard
Validates the user by checking the token stored in the encrypted preferences. If the token is valid, it sets isUserAuthenticated to true and populates the user property. Otherwise, it logs out the user.