mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
19 lines
526 B
TypeScript
19 lines
526 B
TypeScript
/// <reference path="../auth0/auth0.d.ts" />
|
|
/// <reference path="auth0.widget.d.ts" />
|
|
|
|
var widget: Auth0WidgetStatic = new Auth0Widget({
|
|
domain: 'mine.auth0.com',
|
|
clientID: 'dsa7d77dsa7d7',
|
|
callbackURL: 'http://my-app.com/callback',
|
|
callbackOnLocationHash: true
|
|
});
|
|
|
|
widget.signin({
|
|
connections: ['facebook', 'google-oauth2', 'twitter', 'Username-Password-Authentication'],
|
|
icon: 'https://contoso.com/logo-32.png',
|
|
showIcon: true
|
|
},
|
|
() => {
|
|
// The Auth0 Widget is now loaded.
|
|
});
|