SimpleAuth
SimpleAuth copied to clipboard
SimpleAuthGoogleWebProvider.m: do not crash if account fields are not…
I have been using this and got a crash when I logged in for the first time. Google did not populate all the values, and objectForKey (which is what the assignment does below) cannot handle null values so the library would crash.
My profile came back as: info = { email = "[email protected]"; "first_name" = John; image = "https://lh5.googleusercontent.com/-hTUulT9CemI/AAAAAAAAAAI/AAAAAAAAABs/o6pMlpQ0Lvk/photo.jpg"; "last_name" = Bicket; name = "John Bicket"; verified = 1; };
+1
+1