Skip to content

Commit

Permalink
feat: include ucanto server principal did as 'aud' key in /version en…
Browse files Browse the repository at this point in the history
…dpoint (#309)

Motivation:
* make it easy to discover the ucanto server principal
* unlike [reverted
PR](#305), don't change
`did` property
* because at least `@web3-storage/access` cli expects to be able to
parse that value as a Verifier, which it can only do when the `did` is a
`did:key`
  • Loading branch information
gobengo authored Dec 14, 2022
1 parent 990fe3f commit bf3b171
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/access-api/src/routes/version.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ export async function version(event, env, ctx) {
commit: env.config.COMMITHASH,
branch: env.config.BRANCH,
did: env.signer.did(),
aud: env.config.ucantoServerId.did(),
})
}

0 comments on commit bf3b171

Please sign in to comment.