diff --git a/example/index.html b/example/index.html
index 3b045e95..5ab04a01 100644
--- a/example/index.html
+++ b/example/index.html
@@ -270,7 +270,7 @@
Console:
$('.universal-login').click(function (e) {
e.preventDefault();
- webAuth._hostedPages.login({
+ webAuth._universalLogin.login({
connection: 'acme',
username: $('.login-username').val(),
password: $('.login-password').val()
diff --git a/src/web-auth/index.js b/src/web-auth/index.js
index 1da3f6ca..302c5dc0 100644
--- a/src/web-auth/index.js
+++ b/src/web-auth/index.js
@@ -108,7 +108,7 @@ function WebAuth(options) {
this.popup = new Popup(this, this.baseOptions);
this.crossOriginAuthentication = new CrossOriginAuthentication(this, this.baseOptions);
this.webMessageHandler = new WebMessageHandler(this);
- this._hostedPages = new HostedPages(this, this.baseOptions);
+ this._universalLogin = new HostedPages(this, this.baseOptions);
}
/**
diff --git a/test/web-auth/hosted-pages.test.js b/test/web-auth/hosted-pages.test.js
index 20394535..c7cc3d0f 100644
--- a/test/web-auth/hosted-pages.test.js
+++ b/test/web-auth/hosted-pages.test.js
@@ -11,7 +11,7 @@ var RequestBuilder = require('../../src/helper/request-builder');
var telemetryInfo = new RequestBuilder({}).getTelemetryData();
-describe('auth0.WebAuth._hostedPages', function() {
+describe('auth0.WebAuth._universalLogin', function() {
beforeEach(function() {
stub(TransactionManager.prototype, 'process', function(params) {
return params;
@@ -55,7 +55,7 @@ describe('auth0.WebAuth._hostedPages', function() {
var auth0 = new WebAuth(configuration);
expect(function() {
- auth0._hostedPages.login({
+ auth0._universalLogin.login({
connection: 'tests',
email: 'me@example.com',
password: '1234',
@@ -120,7 +120,7 @@ describe('auth0.WebAuth._hostedPages', function() {
var auth0 = new WebAuth(configuration);
- auth0._hostedPages.login(
+ auth0._universalLogin.login(
{
connection: 'tests',
username: 'me@example.com',
@@ -145,7 +145,7 @@ describe('auth0.WebAuth._hostedPages', function() {
responseType: 'id_token'
});
- auth0._hostedPages.login({
+ auth0._universalLogin.login({
connection: 'tests',
username: 'me@example.com',
password: '1234',
@@ -189,7 +189,7 @@ describe('auth0.WebAuth._hostedPages', function() {
var auth0 = new WebAuth(configuration);
- auth0._hostedPages.login(
+ auth0._universalLogin.login(
{
connection: 'tests',
email: 'me@example.com',
@@ -300,7 +300,7 @@ describe('auth0.WebAuth._hostedPages', function() {
throw new Error('Invalid URL');
});
- this.auth0._hostedPages.signupAndLogin(
+ this.auth0._universalLogin.signupAndLogin(
{
connection: 'the_connection',
email: 'me@example.com',
@@ -358,7 +358,7 @@ describe('auth0.WebAuth._hostedPages', function() {
});
});
- this.auth0._hostedPages.signupAndLogin(
+ this.auth0._universalLogin.signupAndLogin(
{
connection: 'the_connection',
email: 'me@example.com',