Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove warnings around refreshing session #353

Merged
merged 1 commit into from
Feb 23, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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