We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0df7fae commit 366ec16Copy full SHA for 366ec16
src/lib/utils/index.ts
@@ -29,6 +29,24 @@ export const parseSearchParamsToObject = (search: string) => {
29
for (const param of searchParams.entries()) {
30
paramsObject[param[0]] = param[1];
31
}
32
+ paramsObject.authUrlParams = Object.assign({ ...paramsObject });
33
+
34
+ Object.keys(paramsObject).forEach((key) => {
35
+ if (
36
+ ![
37
+ "start_page",
38
+ "is_create_org",
39
+ "response_type",
40
+ "org_name",
41
+ "org_code",
42
+ "state",
43
+ "post_login_redirect_url",
44
+ "authUrlParams",
45
+ ].includes(key)
46
+ ) {
47
+ delete paramsObject[key];
48
+ }
49
+ });
50
51
return paramsObject;
52
};
0 commit comments