isLoggedIn

abstract fun isLoggedIn(): Boolean

Checks whether there is an active authenticated session by inspecting the persisted access token.

A non-blank token means the member has signed in and the token has not been cleared by logout. This does not validate the token against the server - observe sessionState for server-side expiry (SessionState.SESSION_EXPIRED).

Best practice: prefer observing sessionState for reactive UI updates over polling isLoggedIn().

Android (Kotlin)

if (AFCore.authentication().isLoggedIn()) {
// show authenticated content
}

iOS (Swift)

if AFCore.shared.authentication().isLoggedIn() {
// show authenticated content
}

Return

true if a non-blank access token exists in storage.