Skip to content
This repository has been archived by the owner on Feb 25, 2019. It is now read-only.

AccessToken.decode doesn't exist #19

Closed
EternalDeiwos opened this issue Oct 13, 2015 · 2 comments
Closed

AccessToken.decode doesn't exist #19

EternalDeiwos opened this issue Oct 13, 2015 · 2 comments

Comments

@EternalDeiwos
Copy link
Member

Been looking around in the code as to what is generating the following error:
Access Token verify with verifiable JWT and mismatching audience should provide an error description

I can't find any mention of the AccessToken.decode function

I wouldn't mind taking a crack at it if you can tell me a little about what exactly it is supposed to return.

@adalinesimonian
Copy link
Member

AccessToken.decode is JWT.decode from the anvil-connect-jwt library.

The error is happening due to kjur/jsrsasign#129 - in a certain case, we use jsjws to verify the JWT using the n and e values directly. However, in a minor release, jsrsasign (which contains jsjws) removed these functions as they were deprecated, and in doing so, broke semver and connect-jwt.

@adalinesimonian
Copy link
Member

Closing in favour of #21

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

No branches or pull requests

2 participants