Skip to content

Commit

Permalink
Merge pull request #6 from opencrvs/rename-uin-token
Browse files Browse the repository at this point in the history
We have renamed uin token in OpenCRVS to MOSIP_PSUT_TOKEN_ID
  • Loading branch information
euanmillar authored Aug 11, 2023
2 parents c4cd106 + 70842a1 commit cd10ba3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/api/src/features/receive/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ async function asyncReceiveUINToken(payloadStr: string, openCRVSToken: string) {
openCRVSToken,
JSON.stringify({
BRN: birthRegNo,
UINTOKEN: uinToken
MOSIP_PSUT_TOKEN_ID: uinToken
})
)

Expand All @@ -69,7 +69,7 @@ async function asyncReceiveUINToken(payloadStr: string, openCRVSToken: string) {
}
const result = data
.replace(/\$\!CRVSID/g, birthRegNo)
.replace(/\$\!UINTOKEN/g, uinToken)
.replace(/\$\!MOSIP_PSUT_TOKEN_ID/g, uinToken)
fs.writeFile(`cards/${birthRegNo}.html`, result, 'utf8', err2 => {
if (err2) {
logger.error(`ID - ${birthRegNo}. Error Writing to file: ${err2.stack}`)
Expand Down

0 comments on commit cd10ba3

Please sign in to comment.