Releases: oauth-io/oauth-phonegap
Releases · oauth-io/oauth-phonegap
Version 0.2.4
This version adds and fixes the following:
- Fixes the bug with
providers_api
- Changes the plugin id from
com.phonegap.plugins.oauthio
tocom.oauthio.plugins.oauthio
- Adds the popup close event management
OAuth.clearCache()
clears all providers when called without an argument
Version 0.2.3
This release adds the following changes:
- Header in the popup, so the user can quit the page
- Cookies automatically cleared, so that the user doesn't stay logged in the popup (which is better when you need to switch users for example)
Version 0.2.2
- Fixes the "inAppBrowser" dependency by using their master version and not their dev one.
Version 0.2.1
- Fix in config.xml: added platform based configurations.
Version 0.2.0
This version contains the following new features :
- Promises for the popup method
OAuth.popup('facebook')
.done(function (result) {
// use result to perform requests
})
.fail(function (error) {
// handle the error
});
- Access token caching (no need to show a popup every time)
OAuth.popup('facebook', {
cache: true
})
.done(function (result) {
// use result to perform requests
})
.fail(function (error) {
// handle the error
});
- The
.me()
method, that allows you to retrieve user information in a unified way, regardless of the provider
result.me()
.done(function (me) {
// use one of the me fields : e.g. me.email, or me.name, or me.avatar, ...
})
.fail(function (error) {
// handle the error
});
Source refactored
This version's source code has also been refactored, and now uses browserify to create a bundled file.
Unit tests
We also added unit tests in this version, using jasmine-node and istanbul for code coverage.