mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Stop relying on old versions of dependencies gulp-connect *apparently* works with gulp 3 or 4, but the examples on the homepage are written for gulp 3. I updated them minimally to work with gulp 4 -- its types at least. auth0.widget depends on auth0-js which now uses modules. I switched to import types and updated the type names. * require 2.9 for auth0.widget
16 lines
377 B
TypeScript
16 lines
377 B
TypeScript
import 'auth0-js';
|
|
|
|
var widget: Auth0WidgetStatic = new Auth0Widget({
|
|
domain: 'mine.auth0.com',
|
|
clientID: 'dsa7d77dsa7d7',
|
|
});
|
|
|
|
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.
|
|
});
|