File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -532,6 +532,7 @@ describe("v2 protocol standard API", function()
532532
533533 -- encrypt with footer
534534 token = paseto .encrypt (key , payload_claims , footer_claims )
535+ -- extract footer claims (e.g. to determine public key from kid claim)
535536 extracted_footer_claims , extracted_footer = paseto .extract_footer_claims (token )
536537 assert .equal (# footer_claims , # extracted_footer_claims )
537538 assert .equal (footer_claims .kid , extracted_footer_claims .kid )
@@ -587,6 +588,7 @@ describe("v2 protocol standard API", function()
587588
588589 -- sign with footer
589590 token = paseto .sign (secret_key , payload_claims , footer_claims )
591+ -- extract footer claims (e.g. to determine public key from kid claim)
590592 extracted_footer_claims , extracted_footer = paseto .extract_footer_claims (token )
591593 assert .equal (# footer_claims , # extracted_footer_claims )
592594 assert .equal (footer_claims .kid , extracted_footer_claims .kid )
You can’t perform that action at this time.
0 commit comments