Skip to main content
Interface
interface AuthManager

Functions

getJWT

abstract suspend fun getJWT(): String?
Returns the current JWT for use as a Bearer token in API calls, or null if not authenticated.

logout

abstract suspend fun logout()
Signs the user out and clears all stored auth state.

setJWT

abstract fun setJWT(jwt: String)
Stores an externally obtained JWT for use in API calls.