Section 6 said that "All PASETO payloads MUST be a JSON object [RFC8259]."
RFC 7519 (JSON Web Token) [2] mentions that all claims are options and draft v01 [3] does not mention that one of the claims should be filled, so the claims to be transported should be "{}" not "[]".
Environment
Steps to reproduce
The following code may reproduce it (the actual code to Verify it is in Go [1], I try to reproduce it in PHP as possible),
Expected value
Actual value
Section 6 said that "All PASETO payloads MUST be a JSON object [RFC8259]."
RFC 7519 (JSON Web Token) [2] mentions that all claims are options and draft v01 [3] does not mention that one of the claims should be filled, so the claims to be transported should be "{}" not "[]".
-- [1] https://github.com/shuLhan/share/blob/master/lib/paseto/paseto.go#L292 [2] https://tools.ietf.org/html/rfc7519#section-4.1 [3] https://github.com/paragonie/paseto/blob/master/docs/RFC/draft-paragon-paseto-rfc-01.txt#L920