Skip to content

Commit

Permalink
webauth.login → webauth.authorize (#367)
Browse files Browse the repository at this point in the history
  • Loading branch information
dtinth authored and hzalaz committed Mar 1, 2017
1 parent cfe398b commit 2cf3091
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/web-auth/redirect.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function Redirect(client, options) {
* @method loginWithCredentials
* @param {Object} options
* @param {Function} cb
* @deprecated `webauth.redirect.loginWithCredentials` will be soon deprecated, use `webauth.login` instead.
* @deprecated `webauth.redirect.loginWithCredentials` will be soon deprecated, use `webauth.authorize` instead.
*/
Redirect.prototype.loginWithCredentials = function (options, cb) {
var usernamePassword;
Expand All @@ -37,7 +37,7 @@ Redirect.prototype.loginWithCredentials = function (options, cb) {
'nonce'
]).with(options);

this.warn.warning('`webauth.redirect.loginWithCredentials` will be soon deprecated, use `webauth.login` instead.');
this.warn.warning('`webauth.redirect.loginWithCredentials` will be soon deprecated, use `webauth.authorize` instead.');

assert.check(params, { type: 'object', message: 'options parameter is not valid' }, {
responseType: { type: 'string', message: 'responseType option is required' }
Expand Down

0 comments on commit 2cf3091

Please sign in to comment.