-
Notifications
You must be signed in to change notification settings - Fork 25
Description
Issue Summary
if app have run the logout vimeo method, this sentence " (VIMSession.sharedSession()?.account?.isAuthenticated() == nil)" will always be false, I thought it should be false so that the app can reopen URL
Reproduction Steps
I use the folloing code to logout
if ((VIMSession.sharedSession()?.account?.isAuthenticated()) != nil) {
VIMSession.sharedSession()?.client.logoutWithCompletionBlock({ (vIMServerResponse, error) in
if error == nil {
}else {
print("vimeo logout error: \(error)")
}
})
}
And next time I want to login again with authorize with the these codes:
if (VIMSession.sharedSession()?.account?.isAuthenticated() == nil) {
let url = VIMSession.sharedSession()!.authenticator.codeGrantAuthorizationURL()
UIApplication.sharedApplication().openURL(url!)
}
else{
//retrieve feeds
}
I thought if (VIMSession.sharedSession()?.account?.isAuthenticated() == nil) should be true and reopen URL again if app have run the logout vimeo method.. But it always go to retrieve feeds part directly, and there is no feed found if app have run the logout vimeo method.
Expected Behavior
I thought if (VIMSession.sharedSession()?.account?.isAuthenticated() == nil) should be true and reopen URL again if app have run the logout vimeo method.. But it always go to retrieve feeds part directly, and there is no feed found if app have run the logout vimeo method.
Actual Behavior
it always go to retrieve feeds part directly, and there is no feed found if app have run the logout vimeo method.