login-kit-sample icon indicating copy to clipboard operation
login-kit-sample copied to clipboard

Type 'SCSDKLoginClient' has no member 'unlinkAllSessions'

Open vance opened this issue 6 years ago • 2 comments

Just trying to logout using the example provided. The example xcodeproj contains the following error in LoginViewController.swift

Type 'SCSDKLoginClient' has no member 'unlinkAllSessions'

from

        SCSDKLoginClient.unlinkAllSessions { (success: Bool) in
            self.displayForLogoutState()
        }

vance avatar Mar 23 '20 16:03 vance

Should be changed to

SCSDKLoginClient.clearToken()
        self.displayForLogoutState()

in the example

vance avatar Mar 31 '20 16:03 vance