简体   繁体   中英

Auth0 : Custom Login auth0.webAuth is not a constructor

Im using Custom UI login form.

When I tried to call the JavaScript like in the Auth0 documentation. I got the following issue:

auth0.webAuth is not a constructor

I'm using the latest js file.

<script src="https://cdn.auth0.com/js/auth0/8.0/auth0.min.js"></script>
var webAuth = new auth0.webAuth({
    domain:         'XXXXX.auth0.com',
    clientID:       'QizVo__XXXXXXXX',
    redirectUri:    'http://localhost/XXXXXXX/callback'
});

Its not angular. I just want to use in php and place this code in html.

Just added above js file and jquery as provided by auth0 and load the page I got above message.

尝试将auth0.WebAuth()与大写W一起使用。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM