Permalink
Browse files

Fix [ember-debug.deprecate-options-missing] on rejectWithXhr deprecat…

…ionAlias (#1170)
1 parent b67d965 commit 0ee3373e91500a1fbaa599689aeb84fc85dcc4e1 @davelowensohn davelowensohn committed with marcoow Jan 10, 2017
Showing with 8 additions and 2 deletions.
  1. +4 −1 addon/authenticators/devise.js
  2. +4 −1 addon/authenticators/oauth2-password-grant.js
@@ -78,7 +78,10 @@ export default BaseAuthenticator.extend({
@deprecated DeviseAuthenticator/rejectWithResponse:property
@public
*/
- rejectWithXhr: computed.deprecatingAlias('rejectWithResponse'),
+ rejectWithXhr: computed.deprecatingAlias('rejectWithResponse', {
+ id: `ember-simple-auth.authenticator.reject-with-xhr`,
+ until: '2.0.0'
+ }),
/**
When authentication fails, the rejection callback is provided with the whole
@@ -141,7 +141,10 @@ export default BaseAuthenticator.extend({
@deprecated OAuth2PasswordGrantAuthenticator/rejectWithResponse:property
@public
*/
- rejectWithXhr: computed.deprecatingAlias('rejectWithResponse'),
+ rejectWithXhr: computed.deprecatingAlias('rejectWithResponse', {
+ id: `ember-simple-auth.authenticator.reject-with-xhr`,
+ until: '2.0.0'
+ }),
/**
When authentication fails, the rejection callback is provided with the whole

0 comments on commit 0ee3373

Please sign in to comment.