mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-12 12:10:44 +08:00
Added Auth0 definitions for JS API and widget
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
/// <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.
|
||||
});
|
||||
Reference in New Issue
Block a user