Skip to content

Releases: oauth-io/oauth-phonegap

Version 0.2.4

04 Aug 17:02
Compare
Choose a tag to compare

This version adds and fixes the following:

  • Fixes the bug with providers_api
  • Changes the plugin id from com.phonegap.plugins.oauthio to com.oauthio.plugins.oauthio
  • Adds the popup close event management
  • OAuth.clearCache() clears all providers when called without an argument

Version 0.2.3

25 Jul 17:23
Compare
Choose a tag to compare

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

11 Jul 14:28
Compare
Choose a tag to compare
  • Fixes the "inAppBrowser" dependency by using their master version and not their dev one.

Version 0.2.1

12 Jun 16:59
Compare
Choose a tag to compare
  • Fix in config.xml: added platform based configurations.

Version 0.2.0

04 Jun 12:38
Compare
Choose a tag to compare

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.