Skip to content
This repository was archived by the owner on Apr 3, 2023. It is now read-only.

Commit 0134f65

Browse files
IronTonyMattia Panzeri
authored and
Mattia Panzeri
committed
fix: replace fromEntries with map
1 parent 42637a6 commit 0134f65

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/utils/keycloak.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ import {
1212
formatQuerystringParameters,
1313
} from './url';
1414

15+
const entriesPolyFill = (obj: any) =>
16+
Object.keys(obj).map((key) => [key, obj[key]]);
17+
1518
export function getRealmUrl(realm: string, authServerUrl?: string) {
1619
if (typeof authServerUrl === 'undefined') {
1720
return undefined;
@@ -125,7 +128,7 @@ export function parseCallbackParams(
125128

126129
return {
127130
paramsString: formatQuerystringParameters(otherParams),
128-
oauthParams: Object.fromEntries(oAuthParams.entries()),
131+
oauthParams: entriesPolyFill(oAuthParams.entries()),
129132
};
130133
}
131134

0 commit comments

Comments
 (0)