Skip to content
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

verifyJws returns boolean rather than decrypted text or error #9

Open
charliehur opened this issue Jun 22, 2021 · 1 comment
Open

Comments

@charliehur
Copy link

The docs say that the following code:

const jws = await ION.verifyJws({
  jws: 'eyJhbGciOiJFUzI1NksifQ.ImhlbGxvIHdvcmxkIg.NK3f...',
  publicJwk: { ... }
});

should return the following result:

// RESULT
// success: returns 'hello world' to await/then(response)
// fail: throws verification error in try/catch(error)

But I'm just getting a boolean. Amy I doing something wrong here or is this the correct result. Happy to fix docs if boolean is correct.

@csuwildcat
Copy link
Member

@charliehur this is returning a boolean, and looks like a docs nit - should I just change the doc to say boolean, or do you want that plus a method/way to get the payload in the return?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants