Skip to content

Commit

Permalink
[INJIVER-726] - unicode encoding fix
Browse files Browse the repository at this point in the history
Signed-off-by: Sreenadh S <[email protected]>
  • Loading branch information
sree96 committed Nov 28, 2024
1 parent 375a1f9 commit 142d4da
Show file tree
Hide file tree
Showing 2 changed files with 114 additions and 25 deletions.
137 changes: 113 additions & 24 deletions ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ui/src/pages/OvpRedirect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function OvpRedirect(props: any) {
const queryParams = new URLSearchParams(location.search.substring(1));

vpToken = !!params.get("vp_token")
? JSON.parse(atob(params.get("vp_token") as string)) // base64 encoded
? JSON.parse(new TextDecoder('utf-8').decode(Uint8Array.from(atob(params.get("vp_token") as string), char => char.charCodeAt(0)))) // base64 encoded
: undefined;
presentationSubmission = !!params.get("presentation_submission")
? decodeURIComponent(params.get("presentation_submission") as string) // url encoded
Expand Down

0 comments on commit 142d4da

Please sign in to comment.