Skip to content

Commit

Permalink
Merge pull request #177 from srikanth716/injiver-zing-wasm-library
Browse files Browse the repository at this point in the history
[INJIVER-613] encoding clientId and redirectUrl
  • Loading branch information
sree96 authored Sep 27, 2024
2 parents 92126cf + 880aafd commit 77c0428
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 77c0428

Please sign in to comment.