Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/shrihari-prakash/liquid int…
Browse files Browse the repository at this point in the history
…o release
  • Loading branch information
shrihari-prakash committed Oct 27, 2023
2 parents dc7d257 + 042d97b commit 81fb999
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/public/components/consent.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ export default function ConsentScreen() {
};

const onDeny = () => {
window.location = authParams.redirect_uri;
const redirectUri = new URL(authParams.redirect_uri);
redirectUri.searchParams.append('error', 'access_denied');
redirectUri.searchParams.append('error_description', 'Access was denied by the user');
redirectUri.searchParams.append('state', authParams.state);
window.location = redirectUri;
};

React.useEffect(() => useTitle(configuration["content.app-name"], "Consent Required"), []);
Expand Down

0 comments on commit 81fb999

Please sign in to comment.