Hi, sometimes my app crashes trying to access var accessToken: String! when token is nil.
It seems to me that if map["accessToken"] == nil || map["accessToken"] as? String == "" doesn't handle case when token is not a string and that's the cause of the crash.
So I tried to fix it in my pull request.
Hi, sometimes my app crashes trying to access
var accessToken: String!
when token is nil. It seems to me thatif map["accessToken"] == nil || map["accessToken"] as? String == ""
doesn't handle case when token is not a string and that's the cause of the crash. So I tried to fix it in my pull request.