Skip to content

Commit 70e1421

Browse files
committed
Add callback and logout
1 parent 3901c05 commit 70e1421

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

js/auth.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
var webAuth = new auth0.WebAuth({
22
clientID: 'In43D8hfptI5B17Xo7XZX4aBkhfMuH56',
33
domain: 'auth.coderic.org',
4-
audience: `https://coderic.eu.auth0.com/api/v2/`,
4+
audience: `https://coderic.eu.auth0.com/userinfo`,
55
scope: 'openid profile email',
66
redirectUri: 'https://coderic.org/callback',
77
responseType: 'token id_token'
88
});
99

1010
login = () => webAuth.authorize({
11-
audience: 'https://coderic.eu.auth0.com/api/v2/',
11+
audience: 'https://coderic.eu.auth0.com/userinfo',
1212
scope: 'openid profile email',
1313
redirectUri: 'https://coderic.org/callback'
1414
});
@@ -19,7 +19,7 @@ logout = () => webAuth.logout({
1919
load = () => {
2020
webAuth.checkSession(
2121
{
22-
audience: 'https://coderic.eu.auth0.com/api/v2/',
22+
audience: 'https://coderic.eu.auth0.com/userinfo',
2323
scope: 'openid profile email',
2424
},
2525
function (err, result) {

0 commit comments

Comments
 (0)