handles both JWS (3 segments) and JWE (5 segments)
remove the ending (?:(?:... to handle JWS only
payload (2nd segment) may be empty
both header (1st segment) and payload are expected to start with eyJ, a base64 encoded start of JSON object {"
accepts only proper Base64url encoding (RFC 4648) with...
Submitted by iki - 12 days ago