fix: remove access_token & id_token from query string

This commit is contained in:
Lakhan Samani
2023-12-30 21:19:44 +05:30
parent ef2a590608
commit ade676f92c
2 changed files with 6 additions and 4 deletions

View File

@@ -59,7 +59,9 @@ export default function Root({
useEffect(() => {
if (token) {
let redirectURL = config.redirectURL || '/app';
let params = `access_token=${token.access_token}&id_token=${token.id_token}&expires_in=${token.expires_in}&state=${globalState.state}`;
// let params = `access_token=${token.access_token}&id_token=${token.id_token}&expires_in=${token.expires_in}&state=${globalState.state}`;
// Note: If OIDC breaks in the future, use the above params
let params = `state=${globalState.state}`;
if (code !== '') {
params += `&code=${code}`;