siegesmund / SwiftDDP

A Meteor client, written in Swift
MIT License
145 stars 60 forks source link

Crash on logout #46

Closed GurovOK closed 8 years ago

GurovOK commented 8 years ago

Crash in logout method public func logout(callback:DDPMethodCallback?) on let user = self.user()! if user sign in using social network

siegesmund commented 8 years ago

That would indicate that you're not logged in, or maybe you're calling it twice. Can you verify the value of self.user() after you've completed your login, and before you logout?

GurovOK commented 8 years ago

user is nil On login called func signIn(token: String, secret: String) in MeteorOAuthDialogViewController and dictionary params not contains info about user. Or I need to use another logout for social user?

siegesmund commented 8 years ago

If you can post a working code example, I can have a look.

siegesmund commented 8 years ago

Closing this issue due to inactivity.