-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/generic messages #399
Conversation
@@ -101,7 +101,7 @@ describe('Integration Test - Token interaction flow Credential Offer', () => { | |||
|
|||
it('Should correctly create a credential receive token by service', async () => { | |||
const decodedCredOfferResponse = JSONWebToken.decode< | |||
CredentialOfferRequest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was the previous / original test broken? The line didn't look right.
ts/identityWallet/identityWallet.ts
Outdated
|
||
private createCredResp = async ( | ||
credResp: WithExtraOptions<ICredentialResponseAttrs>, | ||
private make_req = <T>(type: string) => ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
camelCase
ts/identityWallet/identityWallet.ts
Outdated
|
||
private createCredReceive = async ( | ||
credReceive: WithExtraOptions<ICredentialsReceiveAttrs>, | ||
private make_res = <T, R>(type: string) => ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
camelCase
make_req -> makeReq, make_res -> makeRes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
Tests currently fail because of a breaking change in #399. Furthermore, a better API for passing in a custom resolover is needed
removes any restrictions imposed by
JSONWebToken
being generic overT extends JWTEncodable
. These changes are not breaking. In future, the interaction tokens which currently remain in the library can be migrated out in a breaking change.Custom messages can be created with the
IdentityWallet.create.message
public function. They will sign and validate like any other.