File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,26 +20,6 @@ function printFormattedAADErrorMessage(hashMessage: string): void {
2020 }
2121}
2222
23- function printFormattedAADErrorMessage ( hashMessage : string ) : void {
24- const hashString = hashMessage . slice ( 1 ) ;
25-
26- // Decode URL encoding and parse key-value pairs
27- const searchParams = new URLSearchParams ( hashString ) ;
28- const formattedMessage : Record < string , string > = { } ;
29-
30- searchParams . forEach ( ( value , key ) => {
31- formattedMessage [ key ] = decodeURIComponent ( value ) ;
32- } ) ;
33-
34- // Print formatted message
35- document . documentElement . innerHTML = "There was a problem with the consent, open browser debug console for more details" ;
36- for ( const key in formattedMessage ) {
37- if ( Object . prototype . hasOwnProperty . call ( formattedMessage , key ) ) {
38- console . log ( `${ key } : ${ formattedMessage [ key ] } ` ) ;
39- }
40- }
41- }
42-
4323/** This is used for authentication API as a redirect URI.
4424 * Delete this code if you do not plan on using authentication API.
4525 * You can change the redirectUriPath to whatever suits you.
You can’t perform that action at this time.
0 commit comments