Skip to content

Commit

Permalink
Merge pull request #353 from auth0/remove-delegation-warning
Browse files Browse the repository at this point in the history
Remove warnings around refreshing session
  • Loading branch information
hzalaz authored Feb 23, 2017
2 parents 8239d69 + 197b20b commit cfe398b
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/authentication/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -277,19 +277,17 @@ Authentication.prototype.loginWithResourceOwner = function (options, cb) {
};

/**
* Makes a call to the `/ssodata` endpoint
* Makes a call to the `/ssodata` endpoint.
* We recommend to avoid using this method and rely on your tenant hosted login page and using prompt=none via renewAuth method.
*
* @method getSSOData
* @param {Boolean} withActiveDirectories
* @param {Function} cb
* @deprecated `getSSOData` will be soon deprecated.
*/
Authentication.prototype.getSSOData = function (withActiveDirectories, cb) {
var url;
var params = '';

this.warn.warning('`getSSOData` will be soon deprecated.');

if (typeof withActiveDirectories === 'function') {
cb = withActiveDirectories;
withActiveDirectories = false;
Expand Down Expand Up @@ -335,19 +333,16 @@ Authentication.prototype.userInfo = function (accessToken, cb) {
};

/**
* Makes a call to the `/delegation` endpoint
* Makes a call to the `/delegation` endpoint.
*
* @method delegation
* @param {Object} options: https://auth0.com/docs/api/authentication#!#post--delegation
* @param {Function} cb
* @deprecated `delegation` will be soon deprecated.
*/
Authentication.prototype.delegation = function (options, cb) {
var url;
var body;

this.warn.warning('`delegation` will be soon deprecated.');

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

0 comments on commit cfe398b

Please sign in to comment.