mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
24 lines
554 B
TypeScript
24 lines
554 B
TypeScript
/// <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);
|
|
});
|