feat: enable custom credentials
type: ✨ Enhancement
desc: As a user, I want to use my own content for credentials.
Motivation / Problem
Currently, all credentials use the same content. A user should be able to provide their own input to showcase that the verifiable credentials are created individually.
Solution
Add input fields in the /issuance
page and send use this input to send it to the server.
Additional context
Editing this page is a little cumbersome as it will check for a valid email before you can see the final screen. Just invert the request in the code, for now, to speed up development. this.fail = true
in Line 144 becomes this.fail = false
. Change back once you create a PR.
You can find a commented input test in pages/issuance/index.vue
. Use this to get started.
The editable fields are all documented in the credentialSubject
property. It includes
companyName: string,
companyNumber:
headquarterCountry: string,
id: string,
legalCountry: string,
lei: string
They must not be empty.