This PR provides the base64url payload string with padding.
Risk: low. Just like the added unit tests, the new one with padding should be equivalent to the original one after decoding. Of course, only the original one can be used in the JWT verification.
Context: although padding is not required by base64 encoding spec, some decode libraries are not robust enough to handle the one without padding.
This PR provides the base64url payload string with padding.
Risk: low. Just like the added unit tests, the new one with padding should be equivalent to the original one after decoding. Of course, only the original one can be used in the JWT verification.
Context: although padding is not required by base64 encoding spec, some decode libraries are not robust enough to handle the one without padding.