oauth-io / oauth-phonegap

OAuth.io plugin for Apache Cordova/PhoneGap
195 stars 69 forks source link

result object #41

Closed jjshoe closed 8 years ago

jjshoe commented 10 years ago

Is there some reason we can't call Oauth.result or OAuth.getResult to get the last result object?

angelxmoreno commented 8 years ago

Oauth.result to get the last result would not make a lot of sense when you have a user logged in with multiple social accounts. However, var twitterResult = OAuth.create('twitter'); or var facebookResult = OAuth.create('facebook'); can give you a result object specific to the social login.

bumpmann commented 8 years ago

Thanks for the reply.

OAuth.create uses the local storage to store and fetch cached tokens so you still have to use OAuth.popup to cache the tokens from the providers, depending on their expiry.