Environment is NextJS, CapacitorJS
I set custom params in the authorizationParams field of Auth0Provider:
<Auth0Provider
{...auth0Config}
authorizationParams= {{...auth0Config.authorizationParams, showIghBranding: "12", show_igh_branding: "13", showighbranding:"14"}}
cacheLocation='localstorage'
useRefreshTokens
>
And then use the following code to login:
await loginWithRedirect({
async openUrl(url) {
await Browser.open({ url, windowName: '_self' });
},
});
The browser calls the authorize URL:
https://<redacted>/authorize?client_id=<redact>&scope=openid+profile+email+offline_access&redirect_uri=<redact>&showIghBranding=12&show_igh_branding=13&showighbranding=14&response_type=code&response_mode=query&state=<redact>&nonce=<redact>&code_challenge=<redact>&code_challenge_method=S256&auth0Client=<redact>
The Auth0 server then responds with a 302 redirect missing the custom params showIghBranding, show_igh_branding, or showighbranding
/u/login?state=<redacted>
Is it normal to lose the custom params at this redirect step? How do I ensure the custom params are kept?
I try to access the params in the universal_login.html page but get blank output:
<b>config.extraParams.show_igh_branding:</b>{{ config.extraParams.show_igh_branding }}
<b>config.extraParams.showighbranding:</b>{{ config.extraParams.showighbranding }}
<b>config:</b>{{ config }}
<b>config.extraParams:</b>{{ config.extraParams }}