Added Auth0 definitions for JS API and widget

This commit is contained in:
AdvancedREI
2014-05-12 17:50:58 -07:00
parent 68fd50f64b
commit a52dade23e
5 changed files with 199 additions and 1 deletions
+23
View File
@@ -0,0 +1,23 @@
/// <reference path="../auth0/auth0.d.ts" />
var auth0 = new Auth0({
domain: 'mine.auth0.com',
clientID: 'dsa7d77dsa7d7',
callbackURL: 'http://my-app.com/callback',
callbackOnLocationHash: true
});
auth0.login({
connection: 'google-oauth2',
popup: true,
popupOptions: {
width: 450,
height: 800
}
}, (err, profile, idToken, accessToken, state) => {
if (err) {
alert("something went wrong: " + err.message);
return;
}
alert('hello ' + profile.name);
});