Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

base64Decoded adds unexpected characters at end #20

Closed
sudansh opened this issue Apr 16, 2024 · 1 comment
Closed

base64Decoded adds unexpected characters at end #20

sudansh opened this issue Apr 16, 2024 · 1 comment

Comments

@sudansh
Copy link

sudansh commented Apr 16, 2024

Given assert fails

assertEquals(
"{"aud":"ae.rain.com","exp":1713261313,"iat":1713259513,"iss":"ae.rain.com","rain:jurisdiction":"uae","sub":"58490195-01b9-4dcf-ae28-ae0b20f8fbda"}",
"eyJhdWQiOiJhZS5yYWluLmNvbSIsImV4cCI6MTcxMzI2MTMxMywiaWF0IjoxNzEzMjU5NTEzLCJpc3MiOiJhZS5yYWluLmNvbSIsInJhaW46anVyaXNkaWN0aW9uIjoidWFlIiwic3ViIjoiNTg0OTAxOTUtMDFiOS00ZGNmLWFlMjgtYWUwYjIwZjhmYmRhIn0".base64Decoded
)

@saschpe
Copy link
Owner

saschpe commented Jun 24, 2024

Try "ey...n0".base64UrlDecoded, that Base64 string is in URL encoding.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants