DefinitelyTyped/types/auth0.widget/auth0.widget-tests.ts
Nathan Shively-Sanders 6f4c34b258
Fix bad types/v* references in tests (#40575)
* 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
2019-11-21 16:05:37 -08:00

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.
});