π₯ Breaking Changes
- Both
$auth.login()
and $auth.signup()
no longer accept redirect
parameter and loginOnSignup
config property is gone as well. afa5fca
- Removed
loginRoute
, signupRoute
, loginRedirect
, logoutRedirect
, signupRedirect
config options, you should handle that logic at the application level (1e565f0, f8552ef), for example:
$auth.login($scope.user)
.then(function() {
$location.path('/'); // redirect to home page
})
.catch(function(response) {
toastr.error('Login Error');
});
$auth.unlink(provider, options)
now uses POST method by default, also removed unlinkMethod
config property because you can customize that yourself by overriding HTTP config object using the second options
parameter.
- Config options
platform: "mobile"
and platform: "browser"
are now referred as cordova: true
and cordova: false
to avoid confusion with mobile web and hybrid apps like Ionic Framework that use Apache Cordova InAppBrowser.
π New Features
- - Both
$auth.login()
and $auth.signup()
now accept user
and options
parameters, where options
is a HTTP config object (see https://docs.angularjs.org/api/ng/service/$http), giving you full control of the HTTP request. afa5fca
- The change above allows for setting custom Content-Type, cache, timeout, withCredentials, Headers, paramSerializer, etc. for login/signup requests.
tokenRoot
can now be nested inside objects, that means you can send JWT token from your server nested in some other objects - { foo: { bar: { token: "" } } }
. ddf9aba
- Customizable response parameters
code
, clientId
, and redirectUri
, allowing you to override its naming convention and them as code
, client_id
, redirect_uri
or something else depending on your use case and back-end requirements. #346
πͺ² Bug Fixes
- Fixed Safari Private Window localStorage error QUOTA_EXCEEDED_ERR: DOM Exception 22 issue when LocalStorage is disabled or unavailable in Safari. #457
- Fixed Signup/Login issue with Google Chrome on iOS. #467
π Other
- Increased popup polling time to 50ms. d08f240
- Added comment to try/catch, explaining why catch statement is empty. 2b2bd91
- Promise is no longer rejected when closing a popup, if popup is blocked or user cancels authorization. 91fd524 cda52aa
- Removed
ng-pattern
from email field on the signup page. 5042ca6
- Node.js: Handle Google auth error error, when profile info not available. aaddeef
- Updated service naming convention to SatellizerServiceName. 664b9ad
- Removed AngularStrap and added angular-toastr notifications module. e6ea52b
- Signup and Login templates cleanup. aae97fd
- Added 2 resolve functions
loginRequired
and skipIfLoggedIn
to the client demo, that way a user won't see signup and login pages if that user is already signed-in. #478