File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 < meta charset ="utf-8 ">
55 < script src ="https://cdn.auth0.com/js/auth0/8.8/auth0.min.js "> </ script >
66 < script >
7- var AUTH0_CLIENT_ID = '{CLIENT_ID}' ;
8- var AUTH0_DOMAIN = '{DOMAIN}' ;
9-
10- if ( ! AUTH0_CLIENT_ID || ! AUTH0_DOMAIN ) {
11- alert ( 'Make sure to set the AUTH0_CLIENT_ID and AUTH0_DOMAIN variables in silent.html.' ) ;
12- }
13-
14- var webAuth = new auth0 . WebAuth ( {
15- domain : AUTH0_DOMAIN ,
16- clientID : AUTH0_CLIENT_ID ,
17- scope : 'openid profile' ,
18- responseType : 'token id_token' ,
19- redirectUri : 'http://localhost:3000'
20- } ) ;
21- </ script >
22- < script >
23- webAuth . parseHash ( window . location . hash , function ( err , response ) {
24- parent . postMessage ( err || response , 'http://localhost:3000' ) ;
25- } ) ;
7+ parent . postMessage ( {
8+ hash : window . location . hash ,
9+ type : 'auth0:silent-authentication'
10+ } , "http://localhost:3000/" ) ;
11+ } ;
2612 </ script >
2713</ head >
2814< body > </ body >
Original file line number Diff line number Diff line change @@ -101,7 +101,8 @@ export default class Auth {
101101 {
102102 audience : AUTH_CONFIG . apiUrl ,
103103 redirectUri : AUTH_CONFIG . silentAuthRedirect ,
104- usePostMessage : true
104+ usePostMessage : true ,
105+ postMessageDataType : 'auth0:silent-authentication' ,
105106 } ,
106107 ( err , result ) => {
107108 if ( err ) {
You can’t perform that action at this time.
0 commit comments