-
Notifications
You must be signed in to change notification settings - Fork 204
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
fix(oob): expose parseInvitation publicly #834
fix(oob): expose parseInvitation publicly #834
Conversation
berendsliedrecht
commented
Jun 3, 2022
- Quite a nice function to have outside of the framework for parsing qrcodes.
Signed-off-by: Berend Sliedrecht <[email protected]>
Signed-off-by: Berend Sliedrecht <[email protected]>
* | ||
* @returns OutOfBandInvitation | ||
*/ | ||
export const parseInvitation = async (invitationUrl: string): Promise<OutOfBandInvitation> => { |
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.
export const parseInvitation = async (invitationUrl: string): Promise<OutOfBandInvitation> => { | |
export const parseInvitationUrl = async (invitationUrl: string): Promise<OutOfBandInvitation> => { |
'InvitationUrl is invalid. It needs to contain one, and only one, of the following parameters: `oob`, `c_i` or `d_m`.' | ||
) | ||
public async parseInvitation(invitationUrl: string): Promise<OutOfBandInvitation> { | ||
return await this.parseInvitation(invitationUrl) |
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.
This will cause an endless loop it seems?
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.
Ah it should not be this
. good catch haha
Signed-off-by: Berend Sliedrecht <[email protected]>
Codecov Report
@@ Coverage Diff @@
## main #834 +/- ##
=======================================
Coverage 87.76% 87.77%
=======================================
Files 439 440 +1
Lines 10854 10862 +8
Branches 1837 1837
=======================================
+ Hits 9526 9534 +8
Misses 1267 1267
Partials 61 61
Continue to review full report at Codecov.
|