Skip to content
LogoLogo

Logging users out

Logging out a user ends their authenticated session, removing their access credentials from the device and requiring them to authenticate again to access protected resources.

Usage

do {
    try await OFSDK.shared.logOut()
} catch let error {
    print("Error logging out: \(error)")
}

Throws

{
    method: method,
    success: false,
    error: error
}