Skip to content

Commit

Permalink
update return to include vp token uri
Browse files Browse the repository at this point in the history
  • Loading branch information
storywithoutend committed Aug 3, 2024
1 parent c1317f4 commit 9ed27fa
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/routes/v1/dentity/fetchDentityFederatedToken.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,14 @@ export const fetchDentityFederatedToken = async (

const { federated_token, ens_name, eth_address} = data as DentityFederatedTokenResponse

const url = new URL(`${DENTITY_BASE_ENDPOINT}/oidc/vp-token`)
url.searchParams.append('federated_token', federated_token)
url.searchParams.append('ens_name', ens_name)

return json({
name: ens_name,
address: eth_address,
token: federated_token
token: federated_token,
verifiedPresentationUri: url.toString()
})
}

0 comments on commit 9ed27fa

Please sign in to comment.