You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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) {
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.
The text was updated successfully, but these errors were encountered: