Skip to content

Commit

Permalink
[INJIVER-613] encoding clientId and redirectUrl
Browse files Browse the repository at this point in the history
Signed-off-by: srikanth716 <[email protected]>
  • Loading branch information
srikanth716 committed Sep 27, 2024
1 parent 5eb41b3 commit 4bbf511
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion inji-verify/src/utils/ovp-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,7 @@ export const extractRedirectUrlFromQrData = (qrData: string) => {
}

export const initiateOvpFlow = (redirectUri: string) => {
window.location.href = `${redirectUri}&client_id=${OvpClientId}&redirect_uri=${window.location.origin}/redirect`;
const encodedClintIdUrl = window.encodeURIComponent(OvpClientId);
const encodedRedirectUrl = window.encodeURIComponent(window.location.origin);
window.location.href = `${redirectUri}&client_id=${encodedClintIdUrl}&redirect_uri=${encodedRedirectUrl}/redirect`;
}

0 comments on commit 4bbf511

Please sign in to comment.