Skip to content
New issue

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

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

Already on GitHub? # to your account

Make token parsing more robust #234

Closed
ngutech21 opened this issue Feb 15, 2024 · 1 comment
Closed

Make token parsing more robust #234

ngutech21 opened this issue Feb 15, 2024 · 1 comment

Comments

@ngutech21
Copy link
Owner

Some wallets don't export tokens with valid base64. TokenV3 should check for correct padding and add missing = at the end if necessary.

@ngutech21
Copy link
Owner Author

Fixed by 1fca7d2

Use config URL_SAFE_NO_PAD for decoding and URL_SAFE for encoding tokens.

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

No branches or pull requests

1 participant