Skip to content

Payload as String #364

Answered by panva
mawhtin asked this question in Q&A
Feb 21, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

I looked at the specs, and it doesn't explicitly demand a JSON object.

Sure does.

JSON Web Token (JWT)
A string representing a set of claims as a JSON object that is
encoded in a JWS or JWE

JWT Claims Set
A JSON object that contains the claims conveyed by the JWT.


Any chance of supporting a String type payload? Currently it has to be a JSON object.

What about the other existing APIs in jose for JWS?

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mawhtin
Comment options

Answer selected by panva
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants