Package-level declarations

Types

Link copied to clipboard
@Singleton
object AuthenticationSingleton

Singleton object responsible for managing user authentication state and related operations.

Link copied to clipboard
class AuthInterceptor : Interceptor

Interceptor for adding the Authorization header with the user token to outgoing network requests.

Link copied to clipboard
object Constants
Link copied to clipboard
data class DecodedPayload(val remoteId: Int, val email: String, val iat: Int, val exp: Int)
Link copied to clipboard
sealed class Resource<T>

A sealed class representing different states of a resource, typically used for data fetching operations.

Properties

Link copied to clipboard

Functions

Link copied to clipboard

Decodes a JSON Web Token (JWT) and extracts information from its payload.

Link copied to clipboard

Retrieves an encrypted preference value associated with the given key.

Link copied to clipboard

Removes the encrypted preference value associated with the given key.

Link copied to clipboard
fun saveEncryptedPreference(key: String, preference: String)

Saves an encrypted preference value for the given key.

Link copied to clipboard

Checks the validity of a JSON Web Token (JWT) by examining its decoded payload.