auth0 / Lock-Facebook.iOS

Lock for iOS add-on to use Facebook iOS SDK
https://auth0.com/lock
MIT License
7 stars 6 forks source link

Recovering from a 401 #11

Open mdhornet90 opened 8 years ago

mdhornet90 commented 8 years ago

To test some flows, I declined the permissions that Facebook was asking. Now, whenever I attempt to call [[lock identityProviderAuthenticator] authenticateWithConnectionName:@"facebook"...];, I always get a 401 error until I uninstall and reinstall the app. There doesn't seem to be any documentation around recovering from this issue, so is there something obvious that I'm missing?

What I've tried so far:

hzalaz commented 8 years ago

This should do the trick, but I think FB handles that by themselves in their SDK.

[[lock identityProviderAuthenticator] clearSessions];

What version are you using?

mdhornet90 commented 8 years ago

I'll definitely give that a shot, thank you for the quick response! And for Lock-iOS, I'm currently pegged at ~> 2.0. Would you recommend a later version?

hzalaz commented 8 years ago

I'm more interested in Lock-Facebook and FacebookSDK. If you can, paste your Podfile.lock

mdhornet90 commented 8 years ago

Sorry, I mean Lock-Facebook

PODS:

DEPENDENCIES:

SPEC CHECKSUMS: AFNetworking: 5e0e199f73d8626b11e79750991f5d173d1f8b67 Bolts: a0058fa3b331c5a1e4402d534f2dae36dbff31e4 CocoaLumberjack: 17fe8581f84914d5d7e6360f7c70022b173c3ae0 FBSDKCoreKit: d2aaed5e9ab7d8d6301c533376a1fbff1cf3deb5 FBSDKLoginKit: 699ff169080e3072de4b9b0faca90bf23dc36deb JWTDecode: d172edcb1607cc15aed85d58eceedcbb675a4534 Lock: 49139edbbde9e0bee0a7877c744de7a21eed638f Lock-Facebook: 09f2397cbc9ae2e1fc654f7e66248da30343e349 Masonry: 281802d04d787ea2973179ee8bcb50500579ede2 MBProgressHUD: 1569cf7ace17a8bac47aabfbb8580a49690386d1 SimpleKeychain: b50cef3b87939d480ea1143425c00f5b4b70fe21 UICKeyChainStore: f1cbd42216a113f0165de1e733e62905b8823432

COCOAPODS: 0.39.0

I don't actually pull in FacebookSDK, I assumed that Lock-Facebook had a dependency on it. Is that an incorrect assumption?

hzalaz commented 8 years ago

Yes, that's why I asked the Podfile.lock file :smile:

mdhornet90 commented 8 years ago

Updated my response. Sorry, not enough coffee today...