Skip to content

Commit

Permalink
debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
storywithoutend committed Aug 11, 2024
1 parent 64ec06c commit 7e8a7f5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/routes/v1/dentity/fetchDentityFederatedToken.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const fetchDentityFederatedToken = async (
const resp = await fetch(`${DENTITY_BASE_ENDPOINT}/oidc/token`, { method: 'POST', body, headers: { 'Content-Type': 'application/x-www-form-urlencoded' } })
const data = await resp.json()

const { federated_token, ens_name, error: errorTitle, error_description} = data as DentityFederatedTokenResponse
const { federated_token, ens_name, error: errorTitle, error_description, ...rest} = data as DentityFederatedTokenResponse

if (!federated_token || !ens_name) return error(400, {error : errorTitle, error_description})

Expand All @@ -43,6 +43,10 @@ export const fetchDentityFederatedToken = async (

return json({
name: ens_name,
verifiedPresentationUri: url.toString()
verifiedPresentationUri: url.toString(),
DENTITY_BASE_ENDPOINT,
...rest,
ens_name,
federated_token
})
}

0 comments on commit 7e8a7f5

Please sign in to comment.