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

[Failed assertion: boolean expression must not be null] when trying to get the payload of a ECSigned token #5

Closed
AlecsFerra opened this issue Aug 5, 2019 · 1 comment

Comments

@AlecsFerra
Copy link

AlecsFerra commented Aug 5, 2019

Got this error while trying to get the payload of the JWE Token

  final jwe = JsonWebEncryption.fromCompactSerialization(jwes);

  final jwk = JsonWebKey.fromJson(jwks);

  final jwkStore = JsonWebKeyStore()..addKey(jwk);

  return await jwe.getPayload(jwkStore);

It works with the example in the docs but when I use my own keys with different algorithms it fails.

EX

final jwks = {
      "kty": "EC",
      "d": "XXXXXXX",
      "crv": "P-256",
      "x": "XXXXXXXXX",
      "y": "XXXXXXXXXX"
    };
@rbellens
Copy link
Contributor

hi @AlecsFerra

Sorry for the late answer. Has this already been resolved?
Can you send a full example for me to test (the jwe and the key)?

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